郁闷至极,查阅了无数篇帖子,终于发现有人和我遇到过同样的问题。 原来是执行下面的配置语句时并没有成功。
[root@huadi-160219095359 subversion-1.7.9]# ./configure --prefix=/usr/local/svn --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-util=/usr/local/apache/bin/apu-1-config --with-neon=/usr/local/neon > logfile
打开生成的logfile文件,查找neon,发现如下问题:
......
configure: checking neon library
checking neon library version... 0.30.1
You have neon version 0.30.1,
but Subversion needs neon 0.29.6.
An appropriate version of neon could not be found, so libsvn_ra_neon
will not be built. If you want to build libsvn_ra_neon, please
install neon 0.29.6 on this system.
.......
原来是我下载的neon版本不对,libsvn_ra_neon没有build成功。
重新下载了neon-0.29.5.tar.gz,
# tar xvf neon-0.29.5.tar.gz
# ./configure --prefix=/usr/local/neon --with-ssl=openssl --enable-shared (一定要加--enable-shared 参数)
# make && make install
然后重新安装SVN1.7.9,就成功了
[root@huadi-160219095359 subversion-1.7.9]# svn --version
svn, version 1.7.9 (r1462340)
compiled Apr 15 2016, 10:02:35
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' 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