installing mercurial on dreamhost
Installing mercurial on dreamhost is not terribly difficult.
This guide covers:
- Installing Mercurial on Dreamhost
Requirements:
- The path to the mercurial source tar
- You are already ssh'ed into your dreamhost account
Prep work
We need to first get our environment prepared.
Create a packages directory, for our local compiled apps to reside
$ mkdir packagesCreate a directory to work in, and entering that directory
$ mkdir work_dir $ cd work_dirFetch the source files & extract them. Adjust the mercurial source path as needed.
$ wget http://www.selenic.com/mercurial/release/mercurial-0.9.tar.gz $ tar -xzvf mercurial-0.9.tar.gz</code></pre>
Building
Enter the mercurial source directory
$ cd mercurial-0.9Compiling
$ python setup.py install --home=~/packages/
Environment Setup
Now we have to make a few modifications to our environment, so that the applications know where to find the code we just built.
Add the following to your .bashrc file in your home directory
export PYTHONPATH=${HOME}/packages/lib/python export PATH=${HOME}/packages/bin:$PATHLoad the .bashrc into the current session
$ . ~/.bashrcCleanup
If you want to remove the mercurial source now, you can. Remember though, that the hgweb and hgwebdir cgi scripts are still in the source. Use those as needed.
Test!
Check to see if mercurial is working
$ hg version $ hg help</code></pre>