How to Install Subversion on HostMonster

First of all, we need to scan and fax our identification with any ID like identification card, passport or driving license to HostMonster in order to activate our account to use SSH. HostMonster has an amazing support team doing this and got my account activated within minutes.

Next, we do not have root access in SSH so we have to work on our home directory. By doing this, I create a folder under $HOME named `src` and change the working directory to it:

# mkdir ~/src

# cd ~/src

 

We need Expat XML Parser
in order to compile Subversion with APR later. Download with the link below or get another mirror from the project page:

# wget http://nchc.dl.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz

# tar zxvf expat-2.0.1.tar.gz

# cd expat-2.0.1

# ./configure –prefix=$HOME

# make

# make install

 

Back to the `src` directory after the installation is done:

# cd ~/src

 

We need Apache Portable Runtime
library, APR and APR-util. Download with the link below or get another mirror from the Apache project page:

# wget http://apache.lawyersdb.com/apr/apr-1.4.2.tar.gz

# tar zxvf apr-1.4.2.tar.gz

# cd apr-1.4.2

# ./configure –prefix=$HOME

# make

# make install

 

Back to the `src` directory after the installation is done:

# cd ~/src

 

Next, we need GNU Libtool
before installing APR-util. Download with the link below:

# wget http://ftp.gnu.org/gnu/libtool/libtool-2.2.6b.tar.gz

# tar zxvf libtool-2.2.6b.tar.gz

# cd libtool-2.2.6b

# ./configure –prefix=$HOME

# make

# make install

 

Back to the `src` directory after the installation is done:

# cd ~/src

 

Let's continue to install APR-util. Download from the link below or get another mirror from the Apache project page:

# wget http://apache.lawyersdb.com/apr/apr-util-1.3.9.tar.gz

# tar zxvf apr-util-1.3.9.tar.gz

# cd apr-util-1.3.9

# ./configure –prefix=$HOME –with-apr=$HOME

# make

# make install

 

Back to the `src` directory after the installation is done:

# cd ~/src

 

Here is a step to allow http:// and https:// protocol in Subversion. We need to have neon
 library from WebDAV. Please note that you need to modify ./src/Makefile in order to make neon library static to be linked with Subversion:

# wget http://www.webdav.org/neon/neon-0.29.3.tar.gz

# tar zxvf neon-0.29.3.tar.gz

# cd neon-0.29.3

# ./configure –prefix=$HOME –with-ssl=openssl

# pico src/Makefile

(find "CFLAGS = -g -O2 -prefer-pic")

(modify to "CFLAGS = -fPIC -g -O2 -prefer-pic")

# make

# make install

 

Back to the `src` directory after the installation is done:

# cd ~/src

 

We will need SQLite
library during the compilation of Subversion, but we do not need to compile this library. We can get it from the SQLite project page:

# wget http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz

# tar zxvf sqlite-amalgamation-3.6.23.1.tar.gz

 

We may now proceed to download and install Subversion
, with a directory to include SQLite library:

# wget http://subversion.tigris.org/downloads/subversion-1.6.11.tar.gz

# tar zxvf subversion-1.6.11.tar.gz

# cd subversion-1.6.11

# mkdir sqlite-amalgamation

# cp ../sqlite-3.6.23.1/sqlite3.c sqlite-amalgamation/

# ./configure –prefix=$HOME –without-berkeley-db –with-zlib=/usr –with-ssl –with-apr=$HOME –with-apr-util=$HOME –with-neon=$HOME –libdir=$HOME/lib

# make

# make install

 

We are all done! You may try this to check your newly installed Subversion:

# svn –version

 

You should see SVN header, version installed and some other information about Subversion. Many thanks to the original guide
 on helping me to setup Subversion on my HostMonster account!

Posted in Computer Technology | Tagged , | Leave a comment