impossible to install mercurial?

Robert Bauck Hamar r.b.hamar at usit.uio.no
Sun Apr 5 09:15:32 CDT 2009


*kc0olm at gmail.com:
>I've tried install Mercurial several times, using different methods

Which?

>- all fail for some reason, even though the installers complete successfully. 

installer? You mean the make command?

>Immediately after both installs, when I ran the command hg, I got an error that there were no headers called linux.commands. I had read that I needed to 
>install the headers, but could find nowhere that showed me how to install those.

It's always easier if you could copy the exact message.

>I can't use apt-get, because I am not using Debian. I have both Yum and the RHN.

Tried any of the RPM methods listed on 
<URL:http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages>?

>[root at kameronclinux mercurial-1.2.1]# hg
>abort: couldn't find mercurial libraries in [/usr/local/bin /usr/lib/python24.zip /usr/lib/python2.4 /usr/lib/python2.4/plat-linux2 
>/usr/lib/python2.4/lib-tk /usr/lib/python2.4/lib-dynload /usr/lib/python2.4/site-packages /usr/lib/python2.4/site-packages/Numeric 
>/usr/lib/python2.4/site-packages/gtk-2.0]
>(check your install and PYTHONPATH)

1. Where did you install the mercurial libraries?

If hg is installed as /foo/bar/bin/hg, the libraries are probably 
installed in /foo/bar/lib/python2.4/site-packages/. Check for dirs 
"mercurial" and "hgext".

2. What does "echo $PYTHONPATH" say?

If it is empty, say (assuming shell is bash):

export PYTHONPATH=/foo/bar/lib/python2.4/site-packages

otherwise say:

export PYTHONPATH=$PYTHONPATH:/foo/bar/lib/python2.4/site-packages

and try again. This will put /foo/bar/lib/python2.4/site-packages.
If this works, just put the line in your .bashrc or /etc/profile.

>I'm at a loss. Not really at a "loss." I've been running various Linux 
>distros for over 10 years, both at home and at work. Some things 
>install well; others don't. Can anyone suggest something?

Hard to suggest anything when I don't know what you have tried, but:

yum install python-setuptools
easy_install mercurial

-- 
Robert Bauck Hamar
USIT/SAPP/GT - Cerebrum
http://www.uio.no/sok?person=hamar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20090405/54463574/attachment.pgp 


More information about the Mercurial mailing list