How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 19, 2013

subversion 1.7 on centos 6

Filed under: Linux — Tags: , , , , — admin @ 11:17 am

Well don’t know if you have try to upgrade the subversion on a centos 6 server however is quite a journey .
Let’s start:

yum groupinstall "Development tools"
cd /usr/loca/src
wget http://mirrors.hostingromania.ro/apache.org/subversion/subversion-1.7.14.tar.gz
tar -zxvf subversion-1.7.14.tar.gz
cd subversion-1.7.14
./get-deps.sh
./configure
make
make check
make install

I have to admit that I didn’t have time to wait the make check so I skipped directly to install .
When you will run the get-deps.sh you will see that it say something about mod_dav_svn and your version of apache. I am using the centos 6.5 and the httpd version is httpd-2.2.15 however if you are using mod_dav_svn then you will see that you must have httpd-2.2.25

Well because is not on repository this version and didn’t want to manually upgrade the httpd, I did a little trick because if you install those and try an httpd -t you will see this error.
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/subversion.conf: Cannot load /etc/httpd/modules/mod_dav_svn.so into server: /usr/local/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_do

Well a simple fix is to remove the mod_dav_svn and reinstall it so :
The fix for me
rpm -e mod_dav_svn-*
yum install mod_dav_svn

and here is the httpd -t after
Syntax OK

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress