aideehorn 发表于 2013-1-15 23:47:07

在Leopard中安装 编译 git

在Leopard中




via the Installer 安装git


Download and install: git-osx-installer


via MacPorts 安装git

Install MacPorts if you haven’t already done so.
Make sure your ports are up to date.

$ sudo port selfupdate

MacPorts base version 1.600 installed

Downloaded MacPorts base version 1.600

The MacPorts installation is not outdated and so was not updated
selfupdate done!

Install Git

$ sudo port install git-core
--->  Installing curl 7.18.2_0
--->  Activating curl 7.18.2_0
--->  Installing openssh 5.0p1_0+darwin_9
--->  Activating openssh 5.0p1_0+darwin_9
--->  Installing p5-error 0.17012_0
--->  Activating p5-error 0.17012_0
--->  Installing popt 1.13_0
--->  Activating popt 1.13_0
--->  Installing rsync 3.0.2_0
--->  Activating rsync 3.0.2_0
--->  Installing git-core 1.5.5.3_0+doc
--->  Activating git-core 1.5.5.3_0+doc

You may want to include Subversion support if you want to import SVN repositories.

sudo port install git-core +svn

 
via compiling manually 安装git

 
curl -O http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gztar zxvf expat-2.0.1.tar.gzcd expat-2.0.1./configure –prefix=/usr/localmakemake checksudo make installcd .. curl -O http://kernel.org/pub/software/scm/git/git-1.5.3.4.tar.bz2tar jxvf git-1.5.3.4.tar.bz2cd git-1.5.3.4make prefix=/usr/local allmake prefix=/usr/local test && echo $?sudo make prefix=/usr/local installcd .. curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.3.4.tar.bz2sudo tar xjv -C /usr/local/man -f git-manpages-1.5.3.4.tar.bz2  
页: [1]
查看完整版本: 在Leopard中安装 编译 git