Home > Linux, Полезности > Install Mercurial on Debian Linux

Install Mercurial on Debian Linux

Commands to install Mercurial on Debian 6 Linux.

Find source of Python, docutils and Mercurial.
Then commands:
# aptitude install curl gcc make libbz2-dev zlib1g-dev
# mkdir /var/tmp/obj && cd /var/tmp/obj
# curl https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz | tar -xzf -
# curl http://sourceforge.net/projects/docutils/files/docutils/0.11/docutils-0.11.tar.gz/download | tar -xzf -
# curl http://mercurial.selenic.com/release/mercurial-3.0.1.tar.gz | tar -xzf -
# cd Python-2.7.7
# ./configure --prefix=/usr/local --disable-shared --with-threads \
   --enable-unicode=ucs4 --with-signal-module --with-bz2 --with-zlib
# make install
# cd ../docutils-0.11/
# /usr/local/bin/python2.7 setup.py  build
# /usr/local/bin/python2.7 setup.py  install
# cd ../mercurial-3.0.1
# make PYTHON=/usr/local/bin/python2.7 PREFIX=/usr/local install
# update-alternatives --install /usr/bin/hg hg /usr/local/bin/hg 100
Be careful. Page width too short to display some lines…
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.