【发布时间】:2011-09-09 18:20:44
【问题描述】:
我有一个服务器在工作,我基本上是在构建一个 apache/mysql/subversion/php/python 开发基础。我发现服务器指向的 RPM 存储库只有 3.3.6-5 版本的 sqlite,而它的颠覆 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 副本很好地一起玩?
【问题讨论】:
标签: linux sqlite installation configure