CentOS 5 上安装git

CentOS 5 上安装git


在安装NIOS2-LINUX中必须要安装git,可按照Altera WiKi提供的方法根本装不上(输入命令:yum install git-all git-gui make gcc ncurses-devel bison byacc flex gawk gettext ccache zlib-devel gtk2-devel lzo-devel pax-utilslibglade2-devel),只能下载后安装:

//先安装git依赖的包
yum install zlib-devel 
yum install openssl-devel 
yum install perl 
yum install cpio 
yum install expat-devel 
yum install gettext-devel


//安装autoconf
yum install autoconf

//安装git
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz 
tar xzvf git-latest.tar.gz 
cd git-{date} 
autoconf 
./configure �with-curl=/usr/local 
make 

make install


你可能感兴趣的:(git)