Because my CentOS got ver.5.5, I upgraded Mercurial to 1.5.4 as well. I noticed many Mercurial fan using CentOS come to this site searching for "CentOS Mercurial". I think to install Mercurial as a RPM package is very useful and there are some needs. So I decided to write the install memo again.
Please note this memo is based on former posts(
1,
2). If dependency problem happens, former posts should be referred.
I changed steps from former versions to use the environment variable MVER so that the steps can be applicable for any version.
Very useful indeed, thanks!
返信削除got that! thanks
返信削除# rpmbuild -tb mercurial-1.6.4.tar.gz
返信削除got error
error: Failed build dependencies:
python-docutils >= 0.5 is needed by mercurial-1.6.4-0.i386
I also got same error.
返信削除How can we install python-docutils?
Hi dh and uep,
返信削除Many thanks for your comments. I didn't know the new release of Mercurial.
I checked the spec file to build the RPM. The package name depended was just changed.
docutils=>python-docutils
So please use the followings instead of line8:
sed -i -e's/, python-docutils >= 0.5//' contrib/mercurial.spec
I successfully built the new RPM of 1.6.4.
Thanks.
if on 64 bit CentOS/RedHat, /usr/src/redhat/RPMS/i386/mercurial-1.5.4-0.i386.rpm has to be replaced with /usr/src/redhat/RPMS/x86_64/mercurial-1.5.4-0.x86_64.rpm
返信削除Darpan,
返信削除Many thanks for the useful information. Unfortunately I don't have a 64bit environment. I appreciate your comment!
nice one. Thanks a lot.
返信削除Thank you!!
返信削除thanks!!!
返信削除some slight modifications, some more yums, wget's and rpm -Uvh for missing dependencies but for now mercurial 1.9.3 seems to work fine :)
For "rpmbuild: command not found" do:
返信削除yum install rpm-build rpmdevtools