Installing py36-iocage on FreeBSD 11.0-RELEASE

Posted on Mon 19 June 2017 in FreeBSD, iocage

Ran into an issue while trying to build and install the latest version of py36-iocage from GitHub here. I installed the required python36, git-lite, and libgit2 packages with pkg install python36 git-lite libgit2 as the GitHub README suggests, but got the following error upon executing make install:

# pkg install python36 git-lite libgit2
...
# git clone --recursive https://github.com/iocage/iocage
# cd iocage
# make install
...
#error You need a compatible libgit2 version (v0.25.x)

Basically my libgit2 was out of date. Dug around a bit and realized that my pkg repository setting was pointed to quarterly instead of latest. Switching to latest and trying again solved the issue:

# mkdir -p /usr/local/etc/pkg/repos
# echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' >> /usr/local/etc/pkg/repos/FreeBSD.conf
# pkg update
# pkg upgrade
# cd iocage
# make install

GitHub Repo: Link
GitHub Issue: Link