加载mod_dav_svn时出错:未定义的符号:apr_crypto_block_cleanup

时间:2019-01-12 19:40:57

标签: linux apache http svn debian

我在Debian Stretch VPS中配置Apache HTTP Server时遇到问题。我正在尝试设置Subversion服务器,但是在加载 mod_dav_svn 模块并重新启动服务后出现错误。这是错误:

root@v477561:~# systemctl status httpd.service
Jan 12 02:18:01 v477561.neubox.net systemd[1]: Starting The Apache HTTP Server...
Jan 12 02:18:01 v477561.neubox.net httpd[10674]: httpd: Syntax error on line 158 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-subversion.conf: Cannot load /usr/lib/apache2/modules/mod_dav_svn.so into server: /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so.1: undefined symbol: apr_crypto_block_cleanup
Jan 12 02:18:01 v477561.neubox.net systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 02:18:01 v477561.neubox.net kill[10678]: kill: failed to parse argument: '': No such file or directory
Jan 12 02:18:01 v477561.neubox.net systemd[1]: httpd.service: Control process exited, code=exited status=1
Jan 12 02:18:01 v477561.neubox.net systemd[1]: Failed to start The Apache HTTP Server.
Jan 12 02:18:01 v477561.neubox.net systemd[1]: httpd.service: Unit entered failed state.
Jan 12 02:18:01 v477561.neubox.net systemd[1]: httpd.service: Failed with result 'exit-code'.

这是加载Subversion模块的Apache HTTP Server配置文件:

LoadModule mod_dav_svn /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule mod_authz_svn /usr/lib/apache2/modules/mod_authz_svn.so

Alias /svn /var/www/svn/repositorios
<Location /svn>
DAV svn
SVNParentPath /var/www/svn/repositorios
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /var/www/svn/usuarios
Require valid-user
</Location>

我没有使用Debian存储库中的Apache HTTP Server,因为它是由托管服务提供商从源代码编译的,所以我无法直接使用a2enmod加载模块,而是使用配置文件。

我已经搜索了很多内容,但没有任何解决方法,请不要再向我建议另一个StackOverFlow问题,因为我已经全部阅读了这些内容,但我发誓没有任何作用。

我正在使用:

  • Apache 2.4.37(Unix)
  • Subversion 1.9.5

0 个答案:

没有答案