Archive

Posts Tagged ‘linux’

Upgrade subversion to version 1.7 on CentOS

February 11, 2012 6 comments

Hi, this time I wanted to upgrade subversion on my CentOS box. So this is what I did:

First of all, take backup of your existing repositories (Assuming that I have a repository named: code and it is configured on svn under /home/svn/repositories/code):

svnadmin dump /home/svn/repositories/code > /backups/svn/code.dump

Now lets kill our running svn server:

ps -fea | grep svnserver
ps -fea | grep svnserve | grep -v grep | awk '{print $2}' | xargs kill -9

Now that I have my backups ready and the server is stopped I can go ahead and uninstall current svn version and then build from source and install the latest version, with these steps:

svn --version #Lets check which version we have now

yum remove subversion

cd /usr/local/src/

wget http://apache.tradebit.com/pub/subversion/subversion-1.7.2.tar.gz #got this from http://subversion.apache.org/download/ on the recomended download section

tar zxf subversion-1.7.2.tar.gz # Make sure you use the same filename from the previous step

cd subversion-1.7.2

wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz

wget http://rahulsoni.me/files/apr-1.4.5.tar.gz

tar zxf apr-util-1.3.12.tar.gz

mv apr-util-1.3.12 apr-util # When using ./configure it will look for these files by default on a folder without version number

tar zxf apr-1.4.5.tar.gz

mv apr-1.4.5 apr # When using ./configure it will look for these files by default on a folder without version number

./configure

Now after my first try to get this working, it failed because of the sqlite version, so if you get this message after trying ./configure :

checking sqlite library version (via header)... unsupported SQLite version
checking sqlite library version (via pkg-config)... none or unsupported 3.3
no

An appropriate version of sqlite could not be found. We recommmend
3.7.6.3, but require at least 3.6.18.

Then you would need to install sqlite 3.7.X you can do it by installing atomic repository and updating using yum:

sqlite3 -version #check current version

wget -q -O - http://www.atomicorp.com/installers/atomic | sh # To install Atomic repository

yum --enablerepo=atomic upgrade sqlite

sqlite3 -version #you should get the 3.7 version listed now

Now that we have the updated sqlite, lets continue with the subversion install:

./configure

make

make install

svn --version # Now you should see the latest version

Now, go to all of your local working directories and do a svn upgrade:

cd /application/code

svn upgrade

And Thats it!! You now have the 1.7 svn working version.

Categories: subversion Tags: , ,