installing hg 0.9.4
Thursday, 04 October 2007
Cleaning out some notes of mine, it seemed a shame to just throw out notes on installing hg. I'm happy to update this with sections for other platforms and other Linux distros if people send them my way.
Installation on Ubuntu (< Gutsy)
Note: only Ubuntu Gutsy has hg 0.9.4, and my Ubuntu isn't yet Gutsy.
sudo apt-get install python2.4 python2.4-dev
wget http://www.selenic.com/mercurial/release/mercurial-0.9.4.tar.gz
tar xzf mercurial-0.9.4.tar.gz
cd mercurial-0.9.4
sudo make install
which hg # should be /usr/local/bin/hg
hg debuginstall
Installation on Linux (with no package mgmt support):
Presumably this works just as well on other Unix-y platforms.
# You must have a Python >=2.4 installation and first on your PATH.
cd tmp
wget http://www.selenic.com/mercurial/release/mercurial-0.9.4.tar.gz
tar xzf mercurial-0.9.4.tar.gz
cd mercurial-0.9.4
python setup.py install
hg debuginstall
Installation on Mac OS X (using MacPorts):
sudo port selfupdate
sudo port search mercurial
# ensure this is version >= 0.9.4
sudo port install mercurial
Troubleshooting : install fails with "Another version of this port (mercurial @0.9.1_0) is already active."
sudo port uninstall mercurial @0.9.1_0 # the old one
sudo port uninstall mercurial @0.9.4_0 # the broken new one
sudo port install mercurial
Installation on other platforms (Windows, Solaris, FreeBSD, ...)
Look for an available binary package.