我正在尝试建立一个 SVN 环境。我已经安装了 collabnet svn 1.7.5 版本。
如果我通过下载这些 .so 文件将以下内容放入 httpd.conf
LoadModule ldap_module opt/CollabNet_Subversion/modules/mod_ldap.so
LoadModule authnz_ldap_module opt/CollabNet_Subversion/modules/mod_authnz_ldap.so
服务器重新启动,当我创建一个 repo 时它说
svnrepo -r sample -d "testing" -m -l ldap -g -e
INFO: CollabNet Subversion 1.7.5-1
INFO: Creating repository 'sample' in '/opt/CollabNetSVN/repositories'....
svnadmin: warning: cannot set LC_CTYPE locale
svnadmin: warning: environment variable LC_CTYPE is en_US.ISO8859-1
svnadmin: warning: please check that your locale name is correct
INFO: Configuring repository 'sample'....
INFO: Creating default directory structure....
svnadmin: warning: cannot set LC_CTYPE locale
svnadmin: warning: environment variable LC_CTYPE is en_US.ISO8859-1
svnadmin: warning: please check that your locale name is correct
INFO: Verifying repository 'sample' in '/opt/CollabNetSVN/repositories'....
svnadmin: warning: cannot set LC_CTYPE locale
svnadmin: warning: environment variable LC_CTYPE is en_US.ISO8859-1
svnadmin: warning: please check that your locale name is correct
INFO: Creating authorization file....
INFO: Configuring apache server...
INFO: Checking apache server configuration....
httpd: Syntax error on line 56 of etc/opt/CollabNet_Subversion/conf/httpd.conf: module authnz_ldap_module is built-in and can't be loaded
如果我把它放在 httpd.conf
LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
httpd:/etc/opt/CollabNet_Subversion/conf/httpd.conf 第 56 行的语法错误:找不到模块。
如果我不在 httpd.conf 中加载这些模块,则服务器不会以 ldap 别名启动
我不确定它在哪里失败。非常感谢帮助