yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install autoconf
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
cd git-*
autoconf
./configure
make
sudo make install
git --version
-----报错:--------
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
-----处理:--------
1.在/etc/ld.so.conf中加一行/usr/local/lib,
2.然后运行/sbin/ldconfig
Sign in to make a reply
Lucas-Yu
yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install autoconf
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
cd git-*
autoconf
./configure
make
sudo make install
git --version
-----报错:--------
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
-----处理:--------
1.在/etc/ld.so.conf中加一行/usr/local/lib,
2.然后运行/sbin/ldconfig