Rails Machine Wiki

Comparing version 4 and version 3
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

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 RpmforgeRepository.

sudo yum --enablerepo=rpmforge install asciidoc xmlto curl curl-devel
 # check for the latest version at http://git.or.cz/
wget http://kernel.org/pub/software/scm/git/git-1.5.6.tar.gzhttp://kernel.org/pub/software/scm/git/git-1.6.0.1.tar.gz
tar xvzf git-*.tar.gz
cd git-*
make configure
./configure --prefix=/usr --without-tcltk
make all doc
sudo make install install-doc
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