Can I install Mercurial in my home directory?

I would like to install Mercurial on a Linux system where I do not have access root.

How can I do this so that I can uninstall Mercurial again and update it when new versions are released?

Also, can I get a package for Windows that does not require administrator privileges to install?

+5
source share
3 answers

Mercurial in the home directory how?

It is very easy to compile and install Mercurial in your home directory, I did it myself.

This related wiki mail will certainly provide some help if you have questions;

make install-home hg , ~/bin ~/lib.

, make , make install-home ( ) .

$PATH , ~/bin.


Mercurial windows , ?

, Mercurial. Windows, .

+7

Linux

Mercurial Makefile, local. , C :

$ make local
... (lots of output) ...
python hg version
Mercurial Distributed SCM (version 5b66e55c0d93+20111216)
(see https://www.mercurial-scm.org for more information)

Copyright (C) 2005-2011 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Python, python-dev. hg script PATH. ~/bin :

$ cd ~/bin
$ ln -s ../src/mercurial/hg

hg .

Mercurial, , , . : make local. Mercurial Mercurial:

$ hg clone https://www.mercurial-scm.org/repo/hg
$ cd hg
$ make local

Mercurial default. hg update stable , stable. .

Inno. . TortoiseHg, .

+2

, , - , , C .

C

.

make

wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
mkdir -p ~/software/lib/python2.5/site-packages
export PYTHONPATH=~/software/lib/python2.5/site-packages
sh setuptools-0.6c11-py2.5.egg --prefix=~/software
export PATH=${PATH}:~/software/bin
easy_install --prefix=~/software docutils
cd ~/software
wget https://www.mercurial-scm.org/release/mercurial-2.5.2.tar.gz
tar xzvf mercurial-2.5.2.tar.gz
cd mercurial-2.5.2.tar.gz
python setup.py --pure install --home="~/software" --force
cd ~/software/lib/python
mv hgext/ ../python2.5/site-packages/
mv mercurial ../python2.5/site-packages/
mv mercurial-2.5.2.egg-info ../python2.5/site-packages/

.bashrc:

export PYTHONPATH=~/software/lib/python2.5/site-packages
export PATH=${PATH}:~/software/bin

Check:

~$ hg
Mercurial Distributed SCM
etc...
+2

All Articles