undefined symbol: sqlite3_open_v2

undefined symbol: sqlite3_open_v2,第1张

概述错误 [root@db1 ~]# /usr/local/apache/bin/apachectl -t httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_dav_svn.so into server: /usr/local/su

错误

[root@db1 ~]# /usr/local/apache/bin/apachectl -t
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_dav_svn.so into server: /usr/local/subversion/lib/libsvn_subr-1.so.0: undefined symbol: sqlite3_open_v2

分析

[root@db1 ~]# ldd /usr/local/apache/modules/mod_dav_svn.so | grep libsvn_subr-
libsvn_subr-1.so.0 => /usr/local/subversion/lib/libsvn_subr-1.so.0 (0x00002b35ca916000)
[root@db1 ~]# ldd /usr/local/subversion/lib/libsvn_subr-1.so.0 | grep libsqlite3.so.
libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00002b3dd4770000)

[root@db1 ~]# ldconfig -p | grep sqlite
libsqlite3.so.0 (libc6,x86-64) => /usr/local/sqlite/lib/libsqlite3.so.0
libsqlite3.so.0 (libc6,x86-64) => /usr/lib64/libsqlite3.so.0
libsqlite3.so (libc6,x86-64) => /usr/local/sqlite/lib/libsqlite3.so
libsqlite3.so (libc6,x86-64) => /usr/lib64/libsqlite3.so

解决

[root@db1 sqlite-amalgamation-3070603]# ln -s /usr/local/sqlite/lib/libsqlite3.so.0.8.6 /usr/lib64
ln: creating symbolic link `/usr/lib64/libsqlite3.so.0.8.6' to `/usr/local/sqlite/lib/libsqlite3.so.0.8.6': file exists
[root@db1 sqlite-amalgamation-3070603]# mv /usr/lib64/libsqlite3.so.0.8.6 /root/bak
[root@db1 sqlite-amalgamation-3070603]# ln -s /usr/local/sqlite/lib/libsqlite3.so.0.8.6 /usr/lib64
[root@db1 sqlite-amalgamation-3070603]# ldconfig
[root@db1 sqlite-amalgamation-3070603]# /usr/local/apache/bin/apachectl -t
Syntax OK

总结

一些命令

ldconfig

name
/sbin/ldconfig - configure dynamic linker run time bindings
-p Print the Lists of directorIEs and candIDate librarIEs stored in
the current cache.

ldd

name
ldd - print shared library dependencIEs

SYnopSIS
ldd [OPTION]... file...

其它方法

目的安装subversion服务器,在安装的过程中出现了以上的错误,参考其它文档发现可以避免在这个错误,请参考 svn服务器安装配置一文。

总结

以上是内存溢出为你收集整理的undefined symbol: sqlite3_open_v2全部内容,希望文章能够帮你解决undefined symbol: sqlite3_open_v2所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1177182.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存