1. 程式人生 > >Linux:安裝git

Linux:安裝git

b- 路徑 kernel tar.gz onf *** msg org 環境變量

1.下載

https://www.kernel.org/pub/software/scm/git/git-2.9.4.tar.gz

2.解壓

tar zxvf git-2.9.4.tar.gz

cd git-2.9.4.tar.gz

3.編譯安裝

./configure --prefix=/usr/local/git (安裝路徑)

make - && make install

4.配置環境變量

GIT_HOME=/usr/local/git
PATH=$PATH:$GIT_HOME/bin
export GIT_HOME PATHsource /etc/profile

5.檢查

git --version

異常:

1.Can‘t locate ExtUtils/MakeMaker.pm

解:yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

2.MSGFMT po/de.msg make[1]: *** [po/de.msg] Error 127

解:yum install tk zlib-devel openssl-devel perl cpio expat-devel gettext-devel

Linux:安裝git