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

发布于 2024-12-03 23:34:09 字数 1349 浏览 0 评论 0原文

我有一台正在工作的服务器,我基本上在其上构建 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 变量具有这两个文件的 so 文件sqlite的rpm安装(/usr),以及我安装的编译版本(/usr/local)。我无法 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 的两个副本很好地协同工作?

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.

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

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.

Other info:

# 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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡笑忘祈一世凡恋 2024-12-10 23:34:09

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

Have you tried what the error message from subversion proposes?

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文