Discuss / Git / 评论: 安装Git

评论: 安装Git

Topic source

Lucas-Yu

#1 Created at ... [Delete] [Delete and Lock User]

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


  • 1

Reply