错误1
make: g++: Command not found
make: *** [generate_svn_error_codes/generate_svn_error_codes] Error 127
make: g++: Command not found
 
解决:
yum -y install gcc+ gcc-c++
 
错误2:
[root@web ~]# /etc/init.d/httpd start
httpd: Syntax error on line 53 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: sqlite3_open_v2
 
解决:
[root@web ~]# mv /usr/lib64/libsqlite3.so.0.8.6 /root/libsqlite3.bak
[root@web ~]# ln -s /usr/local/sqlite/lib/libsqlite3.so.0.8.6 /usr/lib64/
[root@web ~]# ldconfig
 
错误3:
modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange':
byterange_filter.c:(.text+0x12c1): undefined reference to `apr_array_clear'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/root/httpd-2.2.22'
make: *** [all-recursive] Error 1
 
编译时加入--with-included-apr
 
错误4:
[root@web conf]# /etc/init.d/httpd restart
httpd: apr_sockaddr_info_get() failed for web.example.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd not running, trying to start
 
解决:将httpd.conf中的ServerName改成web.example.com:80,如果没有域名可以改成与Listen IP:端口相同。
 
 
 
错误5:启动服务时,提示No mod_authn_dbd found
 
在httpd.conf文件中加入:LoadModule authn_dbd_module modules/mod_authn_dbd.so
 
错误6:
Syntax error on line 39 of /etc/httpd/conf.d/apache.cgi.conf:
Invalid command 'DBDriver', perhaps misspelled or defined by a module not included in the server configuration
 
wget http://pysqlite.googlecode.com/files/pysqlite-2.6.3.tar.gz
[root@localhost ~]# cd pysqlite-2.6.3
[root@localhost pysqlite-2.6.3]# python setup.py install
在httpd.conf文件中加入:LoadModule dbd_module modules/mod_dbd.so