Checking out /usr/src on FreeBSD

Posted on Thu 15 June 2017 in FreeBSD

Attempted to make install a package pulled from GitHub and got an error complaining that my /usr/src needs to be populated. Checked out the contents of /usr/src and sure enough it was completely empty, but of course a quick search through the FreeBSD Handbook explained what as going on and how to deal with it.

First, get your FreeBSD version and then do a svn checkout from the proper repository:

# uname -r
# svn checkout /usr/src

There's a lot to checkout so it takes a few minutes, but that's all it takes.

Source: FreeBSD Handbook