How to install Subversion on hostmonster.com

After hours and hours of trying different methods, the steps below are what worked for me.  Many thanks to the geeks out there who wrote up steps like these, these, and these to get it up and running — it was invaluable for me to get it working on my mine.

Okay, the first thing is you’ll first need SSH access enabled on your account (more info here).  Once that’s done, use PuTTY, login into your account, then run the following commands (worked as of May 14, 2010) on a 32-bit server:

### installation ###
mkdir src
cd src

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

tar -xjvf subversion-1.6.11.tar.bz2
tar -xjvf subversion-deps-1.6.11.tar.bz2
cd subversion-1.6.11

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
./configure –enable-shared –prefix=$HOME –with-libs=$HOME –with-ssl
make
make install

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

### add PATH of SVN to your user/account ###
cd ~
echo “PATH=\$PATH:\$HOME/bin/” >> .bashrc
echo “export PATH” >> .bashrc
source .bashrc

### create folder structure ###
mkdir svn
cd ~/svn
mkdir tmpdir
cd tmpdir
mkdir trunk
mkdir branches
mkdir tags

### create repository ###
svnadmin create /home/username/svn –fs-type fsfs
svn import . file:///home/username/svn –message ‘Initial repository structure’
rm -rf tmpdir

### grab user creation script ###
cd ~
wget www.sharpstep.com/Articles/HostMonster-svn/create_svn_user.sh
chmod a+x create_svn_user.sh

#### create SVN user ###
./create_svn_user username user_public_key

# clean up source
rm -rf src

That’s it!  All you have to do now is setup TortoiseSVN and PuTTY.

3 thoughts on “How to install Subversion on hostmonster.com”

  1. I’m fighting my way through installing Subversion. Followed many guides. Still getting:

    # svn info
    svn: ‘.’ is not a working copy

    I’m also getting these, when I make subversion:


    libtool: link: warning: `/lib64/libexpat.la’ seems to be moved
    libtool: link: warning: `/lib64/libexpat.la’ seems to be moved
    libtool: link: warning: `/lib64/libexpat.la’ seems to be moved
    libtool: link: warning: `/lib64/libexpat.la’ seems to be moved
    cp .libs/mod_dav_svn.soT /usr/lib64/httpd/modules/mod_dav_svn.so
    cp: cannot create regular file `/usr/lib64/httpd/modules/mod_dav_svn.so’: Read-only file system
    apxs:Error: Command failed with rc=65536
    .
    make: *** [install-mods-shared] Error 1

    I’m wondering if the problem is the 64-bit issue that keeps appearing in the forums and blogs. My architecture is 64 bit, what about yours? Which architecture is this guide for? Got any tips on the errors I’m getting?

    # arch
    x86_64

    Thanks!

    Blake

  2. Hey Blake,

    I installed SVN on a 32-bit server (thanks for helping clear that up; post updated).

    Yes, the problem you are encountering definitely seems to be a 64-bit install issue. You might want to try building apr, apr-util and neon (in that order), per the text here, specifically, under “Build them, use them (64-bit?).”

    Hope that helps and good luck!

    /Anton

  3. Hi BL

    I am running into the same issue. I am on 64 bit machine and trying to set up svn. get following error at the end:
    apxs:Error: Command failed with rc=65536

    Were you able to install it? Any help will be much appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.