Git install on OS X
On a recent reinstallation of git, the top Google hit for git osx is for a native OS X installer. Unfortunately, running this completed with apparently NO files actually installed (no git in /usr/local/bin/ or elsewhere).
Luckily, the port installation system supports git and installs like a charm:
sudo port selfupdate # Need port 1.600 or greater
sudo port install git-core
Here’s what it looks like when successful:
MacBook:bin jonathan$ sudo port install git-core
---> Fetching curl
---> Attempting to fetch curl-7.19.0.tar.bz2 from http://curl.haxx.se/download/
---> Verifying checksum(s) for curl
---> Extracting curl
---> Configuring curl
---> Building curl with target all
---> Staging curl into destroot
---> Packaging tgz archive for curl 7.19.0_0
---> Installing curl 7.19.0_0
---> Activating curl 7.19.0_0
---> Cleaning curl
---> Fetching openssh
---> Attempting to fetch DVG-5142987_launchd_DISPLAY_for_X11.patch from http://www.opensource.apple.com/darwinsource/10.5/OpenSSH-87/patches/
---> Attempting to fetch openssh-5.1p1.tar.gz from http://mirror.roothell.org/pub/OpenBSD/OpenSSH/portable
---> Attempting to fetch openssh-5.1p1.tar.gz from http://ftp-stud.fht-esslingen.de/pub/OpenBSD/OpenSSH/portable
---> Verifying checksum(s) for openssh
---> Extracting openssh
---> Applying patches to openssh
---> Configuring openssh
---> Building openssh with target all
---> Staging openssh into destroot
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting openssh with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.OpenSSH.plist
###########################################################
---> Packaging tgz archive for openssh 5.1p1_0+darwin_9
---> Installing openssh 5.1p1_0+darwin_9
---> Activating openssh 5.1p1_0+darwin_9
---> Cleaning openssh
---> Fetching p5-error
---> Attempting to fetch Error-0.17015.tar.gz from http://ftp.ucr.ac.cr/Unix/CPAN/modules/by-module/Error
---> Verifying checksum(s) for p5-error
---> Extracting p5-error
---> Configuring p5-error
---> Building p5-error with target all
---> Staging p5-error into destroot
---> Packaging tgz archive for p5-error 0.17015_0
---> Installing p5-error 0.17015_0
---> Activating p5-error 0.17015_0
---> Cleaning p5-error
---> Fetching popt
---> Attempting to fetch popt-1.13.tar.gz from http://rpm5.org/files/popt/
---> Verifying checksum(s) for popt
---> Extracting popt
---> Configuring popt
---> Building popt with target all
---> Staging popt into destroot
---> Packaging tgz archive for popt 1.13_0
---> Installing popt 1.13_0
---> Activating popt 1.13_0
---> Cleaning popt
---> Fetching rsync
---> Attempting to fetch rsync-3.0.4.tar.gz from http://rsync.samba.org/ftp/rsync/
---> Verifying checksum(s) for rsync
---> Extracting rsync
---> Applying patches to rsync
---> Configuring rsync
---> Building rsync with target all
---> Staging rsync into destroot
---> Packaging tgz archive for rsync 3.0.4_0
---> Installing rsync 3.0.4_0
---> Activating rsync 3.0.4_0
---> Cleaning rsync
---> Fetching git-core
---> Attempting to fetch git-1.6.0.2.tar.bz2 from http://www.kernel.org/pub/software/scm/git/
---> Attempting to fetch git-manpages-1.6.0.2.tar.bz2 from http://www.kernel.org/pub/software/scm/git/
---> Attempting to fetch git-htmldocs-1.6.0.2.tar.bz2 from http://www.kernel.org/pub/software/scm/git/
---> Verifying checksum(s) for git-core
---> Extracting git-core
---> Applying patches to git-core
---> Configuring git-core
---> Building git-core with target all
---> Staging git-core into destroot
---> Packaging tgz archive for git-core 1.6.0.2_2+doc
---> Installing git-core 1.6.0.2_2+doc
---> Activating git-core 1.6.0.2_2+doc
---> Cleaning git-core
MacBook:bin jonathan$
1 Comment
There’s a +svn variant that is useful too.