多个sqlite安装在同一台服务器上



我有一个服务器在工作上,我基本上是建立一个apache/mysql/subversion/php/python开发基地。我发现服务器指向的RPM repos只有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变量包含sqlite的rpm安装(/usr)和我安装的编译版本(/usr/local)的so文件。我不能yum删除现有的sqlite,因为它与rpm的安装相关联,所以我想做的是添加我需要的任何东西到我的配置文件或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副本很好地一起玩?

您是否尝试过来自subversion的错误消息建议?

…获取sqlite 3.6.13合并:http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz解包使用tar/gunzip进行归档,并从结果中复制sqlite3.c目录:/root/installs/subversion-1.6.17/sqlite-amalgamation sqlite3.c

相关内容

最新更新