Sep
29
2010

install svn on hostmonster

I’ve been using Hostmonster to host this site for about a year and a half now. I applied for SSH access, which requires a scan of a legal ID, a while ago, and today I needed to install Subversion by logging in via SSH. Hostmonster does not use Ubuntu for their servers, so apt-get was out of the question. I contacted Hostmonster support about this, and although they said they are unable to provide support for 3rd party software, they were very quick to respond and provided me with a link that might help. After some Googling, I came upon this post in a forum topic somewhere. Unfortunately the post was made in August of 2007, so the versions listed for some of the files are quite out-of-date. I couldn’t find any recent guides, but I wasn’t going to quit there.

I’m no Linux expert; in fact, I hardly know my way around the command line. I have messed around with Ubuntu, though, so I had knowledge enough to figure out what I needed to do. I now have a successful install of Subversion! Here is how to get it all working on a Hostmonster shared account. Note that this should work with Bluehost as well since they are related. Please forgive my terminology here. As I mentioned, I’m not really good with Linux, but I’ll do my best to explain.

First, we need to get two Apache tarballs that are required for building Subversion from source since they aren’t included in the Subversion tarball. They are both part of the Adobe Portable Runtime Project. We need APR and APR-util. As of this writing, the latest versions are 1.3.6 and 1.3.8 respectively. To find the download locations for the latest version, go to the download page and find the apr-[version].tar.gz and apr-util-[version].tar.gz files. You will need to use the download URLs for these to get the latest versions. Here are the commands to install these using a terminal. Replace the URLs and filenames to match those that you found on the download page.

   1: mkdir ~/src
   2:
   3: cd ~/src
   4: wget http://www.axint.net/apache/apr/apr-1.3.6.tar.gz
   5: tar -xzf apr-1.3.6.tar.gz
   6: cd apr-1.3.6
   7: ./configure --prefix=$HOME
   8: make
   9: make install
  10:
  11: cd ~/src
  12: wget http://www.axint.net/apache/apr/apr-util-1.3.8.tar.gz
  13: tar -xzf apr-util-1.3.8.tar.gz
  14: cd apr-util-1.3.8
  15: ./configure --prefix=$HOME --with-apr=$HOME
  16: make
  17: make install

Next we need to find the latest version of Subversion to download and build. You can find a link to the latest version right on the home page for Subversion. As of this post, the latest version is 1.6.3. You will need the link to the .tar.gz file under Source Code. Here are the commands to get us started. Even if you know what you are doing, do not go any further than this yet because we need to do something else first. Replace the URL and filenames to match those that you found on the download page.

   1: cd ~/src
   2: wget http://subversion.tigris.org/downloads/subversion-1.6.3.tar.gz
   3: tar -xzf subversion-1.6.3.tar.gz

When I first tried to configure Subversion as we will do soon, it gave me an error saying that it needs SQLite. It said to download the SQLite tarball and copy the sqlite3.c file from it to a sqlite-amalgamation/ subdirectory under the Subversion folder we just unpacked from the Subversion tarball. The latest version of SQLite can be found on the SQLite download page. You need the sqlite-amalgamation-[version].tar.gz file; it should be the second file in the Source Code category. As of this post, the current version is 3.6.16. Here are the commands to get the file we need from this tarball. Don’t forget to replace the URL and filenames with updated ones if you are using newer versions.

   1: cd ~/src
   2: wget http://www.sqlite.org/sqlite-amalgamation-3.6.16.tar.gz
   3: tar -xzvf sqlite-amalgamation-3.6.16.tar.gz
   4: cd sqlite-amalgamation-3.6.16
   5: mkdir ~/src/subversion-1.6.3/sqlite-amalgamation
   6: cp sqlite3.c ~/src/subversion-1.6.3/sqlite-amalgamation

Now we are ready to configure and build Subversion. Here are the commands to do so. As before, update the folder name accordingly.

   1: cd ~/src/subversion-1.6.3
   2: ./configure --prefix=$HOME --without-berkeley-db --with-zlib=/usr --with-ssl
   3: make
   4: make install

We’re all done! Use the following commands to make sure Subversion is now installed. Note the double dash in the second line.

   1: cd
   2: svn –version

You should now be able to use Subversion on your shared hosting account with Hostmonster or Bluehost. Many thanks to the original guide that provided the basis for my findings and to all the other places I don’t remember where I found some other bits and pieces that made this possible.

I hope this saves somebody else the hassles I went through trying to find this information!

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Twitter

About the Author:

5 Comments + Add Comment

  • I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading what you all have to say…

  • Significant Interesting,need state hair human apparent people impact raise close up air deal however buy cry theatre owner institution huge lip need constant business member alternative off quarter factory nice damage cat sheet sometimes safety below rather half politics selection sheet population terrible context its play mine select measure neck special miss faith hour injury commit your original complete award natural excellent look indeed previous fall practical affect sit western parent late wash link theatre scale everybody morning characteristic strategy within executive and pension science because require account plenty song back will plate content maintain

  • Hey, The nice article sites just found your site on with bing helped me a lot! I really like the info, thank you.

  • Thanks for taking the time to share this, I feel strongly about it and love reading more on this topic. If possible, as you gain knowledge, would you mind updating your blog with more information? It is extremely helpful for me.

  • There are a lot of alexis texas sites that allows peoples to make their own web log on their internet site. Of course that it is free, but for line owners , having your own blog speech will give more believability and better chance to stand out of the alexis texas bunch.

Leave a comment

Sponsors