Is it possible to install git on FreeBSD 8.0 without administrator privileges?

I do not have pkg (it only appeared on 9.1). Anyway, I can't use sudo so I can't even use portsnap... Or maybe it is possible? Did not found any information about that.


I try to install from source:

wget https://www.kernel.org/pub/software/scm/git/git-2.12.0.tar.xz
tar -zxvf git-2.12.0.tar.xz && cd git-2.12.0
./configure && make

Receive a bunch of error, among them:

"config.mak.uname", line 490: Missing dependency operator
"config.mak.uname", line 542: warning: duplicate script for target "(,)" ignored
"config.mak.uname", line 547: Need an operator
"config.mak.uname", line 152: warning: duplicate script for target "ifeq" ignored
Error expanding embedded variable.

make -v or --version does not work.

vi: g is'nt a vi command

  • Could you define what "install" means to you here? – Michael Homer Mar 4 '17 at 1:50
  • I downloaded the source with wget, uncompressed, configured, then... make got a bunch of errors. – jvtrudel Mar 4 '17 at 1:52
  • Install... I want to be able to use git. I do not have the git command line tool installed. – jvtrudel Mar 4 '17 at 1:53
  • "config.mak.uname", line 152: warning: duplicate script for target "ifeq" ignored – jvtrudel Mar 4 '17 at 1:54
  • You can edit your post to add compilation errors. – Michael Homer Mar 4 '17 at 1:55

FreeBSD's make is different from Linux one. You'd first need GNU make (gmake). It can be obtained from devel/gmake port or gmake package.

If you don't have administrative rights you can still use ports to compile from sources and pkg to install binaries.


If you already have ports tree in /usr/ports, you can just copy /usr/ports/devel/gmake/ into your home dir and run make there. You'd probably need to override some variables to put everything in your home dir.

Otherwise you can checkout whole ports tree into your home dir and compile whatever you want.


You can use pkg fetch git command to download compiled git package and then unpack it into your custom prefix.

  • 1
    I'm on freebsd 8.0. Pkg is not there. – jvtrudel Mar 4 '17 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.