启动apache出错 undefined symbol:sqlite3_open_v2

# service httpd start
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/mod_dav_svn.so into server: /usr/local/svn/lib/libsvn_subr-1.so.0: undefined symbol: sqlite3_open_v2
                                                                                                [FAILED]

安装svn后,启动apache时,出现了上面的错误,

在网上找好久没找到答案,后来把 sqlite lib的路径加入到ld.so.config就行了,

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf

所以在ld.so.conf.d目录下新建了一个文件sqlite.conf

内容为

/usr/local/sqlite/lib

#ldconfig

# service httpd start
Starting httpd:                                            [  OK  ]

终于重启成功了,搞了好久啊,记录下来,希望对别人有用。

One thought on “启动apache出错 undefined symbol:sqlite3_open_v2”

Comments are closed.