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

问题描述:

我正在使用一台服务器,基本上在该服务器上构建apache / mysql / subversion / php / python开发基础。我发现服务器指向的RPM仓库只有版本3.3.6-5的sqlite,而版本1.6.17令人窒息,至少需要版本3.4:

I've got a server at work on which I am basically building an apache/mysql/subversion/php/python development base. I've found that the RPM repos the server is pointed at only have version 3.3.6-5 of sqlite, which subversion 1.6.17 chokes on, requiring at least version 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时,出现错误:

I managed to download and build sqlite (sqlite-autoconf-3070701.tar.gz), but now when I run sqlite3, I'm getting the error:

sqlite3: symbol lookup error: sqlite3: undefined symbol: sqlite3_sourceid

我确定这是因为PATH变量在sqlite(// usr)和我安装的编译版本(/ usr / local)。我无法删除现有的sqlite,因为它与rpm的安装相关,所以我想做的是在我的配置文件或bashrc中添加所需的内容,或需要其他黑魔法来允许某些用户运行更新了sqlite安装,而其他仅默认为原始安装。

I'm sure this is because the PATH variable has the so files for both the rpm installation of sqlite (/usr), and the compiled version I installed (/usr/local). I can't yum remove the exiting sqlite because it is tied to the installation of rpm, so what I would like to do is add whatever I need to my profile or bashrc or whatever other black magic is needed to allow some users to run the updated sqlite install, while others just default to the original install.

其他信息:

# 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的两个副本很好地玩吗?

Can anyone tell me what I can do to get the two copies of sqlite to play together nicely?

您是否尝试过Subversion的错误消息提出了什么?

Have you tried what the error message from subversion proposes?


...从以下位置获取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

...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