Installing Mercurial on CentOS5.2
Make sure you have installed the python-devel package.
[ root@vmtest ~] # yum install python-devel
[ root@vmtest ~] # cd /usr/local/src
[ root@vmtest /usr/local/src ] # wget http://www.selenic.com/mercurial-stable-snapshot.tar.gz
[ root@vmtest /usr/local/src ] # tar xvfz mercurial-stable-snapshot.tar.gz
[ root@vmtest /usr/local/src ] # cd mercurial-a679bd371091
[ root@vmtest /usr/local/src ] # make all
[ root@vmtest /usr/local/src ] # make install
This will install your python modules in /usr/local/lib/python2.4/site-package/
A simple symlink will fix that.
[ root@vmtest /usr/local/src ] # ln -s /usr/local/lib/python2.4/site-packages/mercurial \
/usr/lib/python2.4/site-packages/
[ root@vmtest /usr/local/src ] # ln -s /usr/local/lib/python2.4/site-packages/hgext \
/usr/lib/python2.4/site-packages/
Now test the install by running:
[ root@vmtest /usr/local/src ] # hg help