Typography is the craft of endowing human language with a durable visual form, and thus with an independent existence. (...) Typography remains a source of true delight, true knowledge, true surprise.

Robert Bringhurst, The Elements of Typographic Style

By Steffen, on April 14, 2008

Ruby on Rails

Tags:


Some time ago, I did my first steps using capistrano for rails deployments. The requirement of a publicly accessible subversion repository seemed rather unmanageable, but I decided tor give it a try on our bluehost account. As there is a number of such tutorials out there, none of them completely worked for me – so here is my version. For all this you need to be logged in via ssh:

cd
mkdir -p svn/src
cd $HOME/svn
wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.gz
tar xzf subversion-1.4.6.tar.gz -C src
tar xzf subversion-deps-1.4.6.tar.gz -C src
cd $HOME/svn/src/subversion-1.4.6/
export CFLAGS=”-fPIC”
./configure –prefix=$HOME/svn –without-berkeley-db –with-zlib –with-ssl –with-expat=builtin
make
make install

This will install the entire subversion distribution in your $HOME/svn folder. After adding these lines to your $HOME/.bashrc you should be all set:

export PATH=”$PATH:$HOME/svn/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/svn/lib

After creating a repository (I’d go for something like svnadmin create $HOME/svn/repo), and configuring some user in there, you can access it from anywhere using something like this:

svn list svn+ssh://USERNAME@HOSTNAME/home/USERNAME/svn/repo

As such action will have to spawn an svnserve process each time you trigger it, do not expect great performance here. But it does work.

P.S.: If you’d wonder about the CFLAG export up there: not setting this, you might end up seeing the following error:
relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC



Leave a Reply

You must be logged in to post a comment.