我在工作中有一台服务器,基本上在上面构建了一个Apache/MySQL/Subversion/PHP/Python开发环境。我发现服务器指向的RPM存储库只有3.3.6-5版本的SQLite,而Subversion 1.6.17会卡住,需要至少3.4版本:
An appropriate version of sqlite could not be found. We recommmend 3.6.13,
but require at least 3.4.0. Please either install a newer sqlite on this
system or get the sqlite 3.6.13 amalgamation from:
http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
unpack the archive using tar/gunzip and copy sqlite3.c from the
resulting directory to:
/root/installs/subversion-1.6.17/sqlite-amalgamation/sqlite3.c
This file also ships as part of the subversion-deps distribution.
我成功地下载并构建了sqlite (sqlite-autoconf-3070701.tar.gz),但现在当我运行sqlite3时,我遇到了以下错误:
sqlite3: symbol lookup error: sqlite3: undefined symbol: sqlite3_sourceid
我相信这是因为PATH变量中有rpm安装sqlite (/usr)和我自己编译的版本(/usr/local)的so文件。我不能yum remove现有的sqlite,因为它与rpm的安装绑定在一起,所以我想要做的是在我的profile或bashrc或其他黑魔法中添加所需的内容,允许一些用户运行更新的sqlite安装程序,而其他用户则默认使用原始的安装程序。
其他信息:
# cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.6 (Carthage)
Oracle Linux Server release 5.6
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
# uname -m
x86_64
有人能告诉我如何让两个sqlite副本协同工作吗?
--with-sqlite=/root/installs/sqlite-amalgamation-3070701/sqlite3.c
,然后Subversion愉快地配置并随后进行了安装。然而,我仍然无法从命令行访问更新的sqlite版本。我会再开放几天,看看是否有其他人对此有任何想法,或者我是否会偶然发现解决方案。如果没有其他办法,我将把您的答案标记为接受的答案。再次感谢! - ogradyjd