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

时间:2011-09-09 18:20:44

标签: linux sqlite install configure

我有一台服务器,我基本上构建了一个apache / mysql / subversion / php / python开发基础。我发现服务器的RPM repos指向只有版本3.3.6-5的sqlite,其中subversion 1.6.17 choke on,至少要求版本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(/ usr)的rpm安装和我安装的编译版本(/ usr / local)的so文件。我不能删除现有的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的两个副本很好地一起玩?

1 个答案:

答案 0 :(得分:3)

您是否尝试过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