howto install subversion on bluehost

i have finally taken the time to get subversion installed and running on my bluehost account. what follows are the steps i took. these steps assume that you have ssh access and your account is on a 64-bit server.

ssh into your account and create a directory to store all of the sources:

mkdir src
cd src

next download the sources for subversion:

wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.5.2.tar.bz2

untar and extract the sources:

tar -xjvf subversion-1.5.2.tar.bz2
tar -xjvf subversion-deps-1.5.2.tar.bz2

lets start with getting the dependencies configured, built and then installed:

cd subversion-1.5.2
cd apr
./configure –enable-shared –prefix=$HOME
make
make install

cd ../apr-util
./configure –enable-shared –prefix=$HOME –with-expat=builtin –with-apr=$HOME –without-berkeley-db
make
make install

cd ../neon
export EXTRA_CFLAGS=”-L/usr/lib64 -fPIC”
export CFLAGS=”-L/usr/lib64 -fPIC”
./configure –enable-shared –prefix=$HOME –with-libs=$HOME
make
make install

now configure, build and install subversion:

cd ..
./configure –prefix=$HOME –with-apr=$HOME –with-apr-util=$HOME –with-neon=$HOME \
–without-berkeley-db –without-apxs –without-apache –without-serf
make
make install

now edit your .bash_profile in the $HOME directory and replace:

PATH=$PATH

with:

PATH=$PATH:$HOME/bin

and save the file. now either “source .bash_profile” or logout and then back in.

verify subversion is working:

svn –version

and should see something similar to:

svn, version 1.5.2 (r32768)
compiled Sep 7 2008, 11:55:08

Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
– handles ‘http’ scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
– with Cyrus SASL authentication
– handles ‘svn’ scheme
* ra_local : Module for accessing a repository on local disk.
– handles ‘file’ scheme

the following sites helped get everything installed, unfortunately none of them worked out of the box for me: site 1, site 2, site 3