impossible to install mercurial?

Martin Geisler mg at daimi.au.dk
Sun Apr 5 09:21:10 CDT 2009


kc0olm at gmail.com writes:

> I've tried install Mercurial several times, using different methods -
> all fail for some reason, even though the installers complete
> successfully.  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.

You need the Python development header files to compile Mercurial. Make
sure you have a package called python-dev or python-devel installed, it
usually contains these header files.

> I can't use apt-get, because I am not using Debian. I have both Yum
> and the RHN.
>
> But the headers error "went away". Now, when I run hg, I get:
>
> [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)
>
>
> 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?

Have you tried the simple 'make local' installation type?

It builds Mercurial right in the directory where you have unpacked the
downloaded file. Then run ./hg to try the resulting binary.

If the binary works, then symlink it to a directory in your path.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20090405/46e80745/attachment.pgp 


More information about the Mercurial mailing list