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:
cd src
next download the sources for subversion:
wget http://subversion.tigris.org/downloads/subversion-deps-1.5.2.tar.bz2
untar and extract the sources:
tar -xjvf subversion-deps-1.5.2.tar.bz2
lets start with getting the dependencies configured, built and then installed:
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:
./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:
with:
and save the file. now either “source .bash_profile” or logout and then back in.
verify subversion is working:
and should see something similar to:
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
Thank you sir!
Pingback: IVS PHOTO » Blog Archive » Django on a shared host with subversion
Thank you for taking the time to write down the steps.
hi
Dear Leagobuff,
Thank you very much for your post, it has been very useful to install subversion, however, I have problems in the last step:
”
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.
”
My “.bash_profile” file had already the “PATH=$PATH:$HOME/bin”, and when I’m trying to check subversion with: “svn –version” I’m having the next sentence:
“-bash: svn: command not found”
Please, could you help me?
Thank you.
Best Regards,
RBC
Raul, if you “cd ~/bin”, then “ls svn”, do you see svn or “No such file or directory”?
Dear Leagobuff,
I´m using BuTTY….
1st step
[~]# cd ~/bin
2nd step
[~/bin]# Is svn
answer:
-bash: Is: command not found
BTW
In the bin directoy there are the next files
apr-1-config* apu-1-config* neon-config*
I´m sorry I´m new using the BuTTY console.
Any suggestion?
Thanks
Best Regards,
RBC
Jamie or Raul,
I’m having the same issue. .bin_profile already has Path=$Path:$Home/bin and then svn –version returns command not found. and ls svn returns no such file or directory.
How did you solve this issue?
Chris,
Based upon what your question says w/ bin being in your profile; –version saying command not found; and ls reporting that the file doesn’t exist… this leads me to believe that svn was not installed in the bin directory in the first place… Can you check the src directories and see if you can locate the compiled binaries.
Let me know what you fin and I’ll try to help out.
Make sure you are in your home directory and then make a hard link to the svn file (which is also a hard link…)
ln src/subversion-1.5.2/subversion/svn/svn bin/svn
Of course, use the same version as the one you installed.
Hello Jamie,
For me work fine the next:
http://www.bluehostforum.com/showthread.php?t=12099&highlight=subversion&page=3
(svn 1.5.4)
and very interesting:
http://www.tabruyn.com/site/index.php?option=com_content&view=article&id=55:tortoisesvn-subversion-and-bluehost&catid=36:digital&Itemid=58
BR.
Raúl
Brilliant! Thanks for very thorough step-by-step instructions. Got 1.5.6 working.
Many, many thanks for this. I used these instructions last November for subversion v1.5.4, and again yesterday for v1.6.2 (dug back into my Delicious saved bookmarks). Worked great twice!
Thanks for taking the time to document so thoroughly! It worked great, right out of your directions!
Many Thanks!
Pingback: Installing subversion on bluehost
Thanks for a great article!
Fantastic Post. Cheers for taking the time to go through this.
Step by step 100% working.
Just got this to work on Hostmonster with Subversion 1.6.6 just by changing the version #’s in the download. Thanks!
Thank you ! Worked like a charm. Got 1.6.6 installed without any hiccups.!!
Thanks this was great help.
Thank you very much!!! Everything worked like a charm!!
Pingback: Installing Subversion (SVN) « PHP Habitat
Worked great…got version 1.6.12 working by simply changing the # in the instructions provided. Great tutorial!
Thank you so much!
For those of you having issues returning the version, it is possible this changed in the newer versions of subversion.
A quick look at “svn help” shows that you need TWO dashes.
svn –version
CHEERS!
Now onto my issue, Everything installed, and version returns, now how do I access this remotely? Merely using the domain it lives on fails with this error.
OPTIONS of ‘http://www.hodgedev.com': 200 OK (http://www.hodgedev.com)
THANKS!
Perfect! thank you!!!!
Anyone else get this “redefinition of struct” error?
[~/src/subversion-1.5.2]# make
/bin/sh /home5/pineriv1/src/subversion-1.5.2/libtool –tag=CC –silent –mode=compile gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/home5/pineriv1/include/apr-1 -I/home5/pineriv1/include/apr-1 -L/usr/lib64 -fPIC -g -O2 -pthread -L/usr/lib64 -fPIC -I/usr/include/httpd -I./subversion/include -I./subversion -I/home5/pineriv1/include/neon -I/home5/pineriv1/include/apr-1 -I/home5/pineriv1/include/apr-1 -I/usr/local/include -o subversion/mod_dav_svn/activity.lo -c /home5/pineriv1/src/subversion-1.5.2/subversion/mod_dav_svn/activity.c
In file included from /usr/include/httpd/apr_file_io.h:29,
from /usr/include/httpd/apr_network_io.h:26,
from /usr/include/httpd/httpd.h:53,
from /home5/pineriv1/src/subversion-1.5.2/subversion/mod_dav_svn/activity.c:23:
/usr/include/httpd/apr_file_info.h:192: error: expected specifier-qualifier-list before ‘apr_ino_t__requires__apr_file_info_h’
In file included from /usr/include/httpd/apr_file_io.h:34,
from /usr/include/httpd/apr_network_io.h:26,
from /usr/include/httpd/httpd.h:53,
from /home5/pineriv1/src/subversion-1.5.2/subversion/mod_dav_svn/activity.c:23:
/usr/include/httpd/apr_want.h:95: error: redefinition of ‘struct iovec’
make: *** [subversion/mod_dav_svn/activity.lo] Error 1