Installing VCS backends in Webfaction
Nov 5th, 2008 by diegobz
Transifex.org is hosted by Webfaction hosting and currently we were trying to deploy a beta version of the new Transifex there. As we want to make all the System Controls Version – VCS supported available, Transifex needs several installations of VCS backends like Mercurial (hg), Git (git), Subversion (svn), Bazaar (bzr) and CVS (cvs).
In order to have all those packages installed without conflicts, we’ve installed some dependencies like Perl and Swig in the local library path of our account. Below you can find all commands used for complete this task:
# Create a source directory
$ mkdir src
$ cd src/# Installing perl5
$ wget http://www.cpan.org/src/perl-5.10.0.tar.gz
$ tar xzf perl-5.10.0.tar.gz
$ cd perl-5.10.0
$ ./configure.gnu –prefix=$HOME
$ make -s
$ make install# Installing swig
$ cd ..
$ wget http://downloads.sourceforge.net/swig/swig-1.3.31.tar.gz
$ tar xzf swig-1.3.31.tar.gz
$ cd swig-1.3.31
$ ./configure -q –prefix=$HOME –with-perl5=$HOME/bin/perl
$ make -s
$ make install# Installing SVN
$ cd ..
$ wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.gz
$ tar xzf subversion-1.5.2.tar.gz
$ wget http://subversion.tigris.org/downloads/subversion-deps-1.5.2.tar.gz
$ tar xzf subversion-deps-1.5.2.tar.gz
$ cd subversion-1.5.2/apr
$ ./configure -q –prefix=$HOME –enable-shared
$ make -s
$ make install
$ cd ../apr-util/
$ ./configure -q –prefix=$HOME –with-expat=builtin –with-apr=$HOME –enable-shared –without-berkeley-db
$ make -s
$ make install
$ cd ../neon/
$ ./configure -q –prefix=$HOME –with-libs=$HOME –with-ssl –enable-shared
$ make -s
$ make install
$ cd ..
$ ./configure -q –prefix=$HOME –with-apr=$HOME –with-apr-util=$HOME –with-neon=$HOME –with-swig=$HOME –without-berkeley-db –without-apxs –without-apache –without-serf PERL=$HOME/bin/perl
$ make -s
$ make install# Installing pysvn
$ cd ..
$ wget http://pysvn.barrys-emacs.org/source_kits/pysvn-1.5.2.tar.gz
$ tar zxf pysvn-1.5.2.tar.gz
$ cd pysvn-1.5.2/Source/
$ python2.5 setup.py configure –svn-inc-dir=$HOME/include/subversion-1/ –svn-lib-dir=$HOME/lib
$ make# Installing GIT
$ cd ..
$ wget http://www.kernel.org/pub/software/scm/git/git-1.6.0.2.tar.gz
$ tar -zxvf git-1.6.0.2.tar.gz
$ cd git-1.6.0.2
$ ./configure -q –prefix=$HOME –with-perl5=$HOME/bin/perl
$ make -s
$ make install# Installing BZR
$ easy_install-2.4 -d $HOME/lib/python2.4/ -s $HOME/bin/ bzr# Installing HG
$ easy_install-2.4 -d $HOME/lib/python2.4/ -s $HOME/bin/ mercurial
CVS was already installed.
Reference: http://benspaulding.com/weblog/2008/oct/01/git-svn-webfaction/