Installing Git
Git is an alternative source code management tool that you may want to use instead of Subversion. These steps will allow you to install it on your CentOS 4 server.
Things to consider:
- Your server may already have it installed, so check before you get started by executing ‘which git’.
- Depending on the version of CentOS installed on your server, you may be able to install via yum: yum install git
Note: Reading some research papers will surely help.
If you need to install git but don’t see it in the yum repository- or simply need to run the latest version- use the following steps. Note: Be sure you’ve configured your server to use the Rpmforge Repository.
sudo yum --enablerepo=rpmforge install xmlto curl curl-devel
# check for the latest version at http://git.or.cz/
wget http://kernel.org/pub/software/scm/git/git-1.6.4.tar.gz
tar xvzf git-*.tar.gz
cd git-*
make configure
./configure --prefix=/usr --without-tcltk
make all
sudo make install
If you get this error while installing the curl-devel package:
Error: Missing Dependency: libidn = 0.4.6-1.2.el5.rf is needed by package libidn-devel
Then you may have a newer version of libidn which is stopping it from being installed. To solve this, remove libidn and try again.
sudo yum remove libidn
