Dumping this here for my future reference. If you find it useful, great! In order to compile Git 1.7.7.1 on OpenIndiana oi_151a or Solaris Express 11 snv_151 perform the following:
Install some necessary packages:
# pkg install gcc-dev # pkg install SUNWscp
Next, download and extract the latest git source archive, in this case 1.7.7.1 from http://www.git-scm.com:
# cd /usr/src # curl http://git-core.googlecode.com/files/git-1.7.7.1.tar.gz | tar xvz
Next, compile and install the package:
# cd /usr/src/git-1.7.7.1 # PATH=/usr/sfw/bin:/usr/bin:/usr/sbin ; export PATH # gmake prefix=/usr all # gmake prefix=/usr install
Okay, so we’re now installed. If you need the documentation as well, the easiest way to do this is to clone the official Git git repository and copy the MAN files into the /usr/share/man directory:
# git clone git://git.kernel.org/pub/scm/git/git.git # git archive --format=tar origin/man | sudo tar -x -C /usr/share/man/ -vf -
That’s it, we’re done!
Thank you for posting this. Worked perfectly for me on snv_134 with 1.7.7.2
Thanks, definitely saved me some time.
Ran into the following:
/usr/ucb/install -d -m 755 ‘/usr/bin’
/bin/bash: /usr/ucb/install: No such file or directory
gmake: *** [install] Error 127
Solved by:
pkg install ucb
Also the man command gives:
geoff@openindiana:~/tmp$ git archive –format=tar origin/man | sudo tar -x -C /usr/share/man/ -vf -
fatal: Not a git repository (or any parent up to mount parent /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Password:
tar: /dev/rmt/0: No such file or directory
I don’t really need the man pages, so I’m not going to hunt this down but if someone else gets it, please add a comment
Hi,
I also ran into the following:
/usr/ucb/install -d -m 755 ‘/usr/bin’
/bin/bash: /usr/ucb/install: No such file or directory
gmake: *** [install] Error 127
Solved by:
changing ‘/usr/usb/install’ in Makefile to ‘ginstall’.