Apache整合的SVN报错

环境:Centos5.4+apache+svn
Apache下整合的SVN,重启apache出现如下错误:
报错内容:
[root@localhost local]# /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 45 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: /usr/local/svn/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear

因先前使用yum安装了apache和subversion,怀疑是系统中装了rpm版的subversion,跟APR,引起版本混乱。故清理这些RPM包试试:

[root@spunkmars ]# rpm -qa|grep subversion
subversion-1.4.4.el5
[root@spunkmars ]# rpm -e --allmatches subversion
[root@spunkmars ]# rpm -qa|grep apr
apr-1.2.7-11
apr-util-1.2.7-7.el5
apr-1.2.7-11
apr-util-1.2.7-7.el5
[root@spunkmars ]#yum remove apr-util ( rpm -e --allmatches apr-util)
[root@spunkmars ]#yum remove apr (rpm -e --allmatches apr)
[root@spunkmars ]# echo '/usr/local/apr/lib'>>/etc/ld.so.conf
[root@spunkmars ]# echo '/usr/local/apr-util/lib'>>/etc/ld.so.conf
[root@spunkmars ]# ldconfig
其中,我的apr安装路径是/usr/local/apr/,apr-util安装路径是/usr/local/apr-util/。经过上面一番操作,http真的运行起来了。呵呵.........

本文出自 “生命不息奋斗不止” 博客,谢绝转载!

你可能感兴趣的:(apache,SVN,职场,休闲)