短篇小说:
我需要> 3.7.3版本的sqlite3,但我目前有3.5。?.我该如何升级包裹?
长篇故事:
尝试安装etherpad-lite(etherpad的node.js实现)。由于sqlite3包安装失败。我试图安装sqlite3的npm包...再次失败。根据这个github问题(https://github.com/developmentseed/node-sqlite3/issues/27),看起来好像我需要大于3.7.3的软件包。我似乎无法找到有关如何升级软件包的任何文档。
感谢您提供的任何帮助!
答案 0 :(得分:6)
要编译,您可能需要build-essentials
:
alfred@alfred-laptop:~$ apt-cache search ^build-essential$
build-essential - Informational list of build-essential packages
alfred@alfred-laptop:~$ sudo apt-get install build-essential
编译SQLite:
alfred@alfred-laptop:~/tmp$ wget http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz
alfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ ./configure
alfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ make
alfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ sudo make install
alfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ sudo ldconfig
尤其sudo ldconfig
很重要。当我没有这样做时,我得到了
alfred@alfred-laptop:~/tmp/sqlite-autoconf-3070701$ sqlite3
SQLite header and source version mismatch
2010-08-23 18:52:01 42537b60566f288167f1b5864a5435986838e3a3
2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f
我正在运行基于Debian的Ubuntu:
alfred @ alfred-laptop:〜/ linux $ cat / etc / lsb-release DISTRIB_ID = Ubuntu的 DISTRIB_RELEASE = 10.10 DISTRIB_CODENAME =特立独行 DISTRIB_DESCRIPTION =“Ubuntu 10.10”
最后我跑了sqlite3
alfred@alfred-laptop:~$ sqlite3 --version
3.7.7.1 2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f
答案 1 :(得分:2)
我没有root访问权限,所以我安装它是这样的: export LD_LIBRARY_PATH = / home / h4ck3rm1k3 / perl5 / lib
以下是详细信息:
vi~ / .bashrc并添加:
export PATH=$PATH:$HOME/perl5/bin
export LD_LIBRARY_PATH=/home/h4ck3rm1k3/perl5/lib
导入新设置
. ~/.bashrc
wget http://www.sqlite.org/sqlite-autoconf-3071000.tar.gz
tar -xzf sqlite-autoconf-3071000.tar.gz
cd sqlite-autoconf-3071000/
./configure --prefix=/home/h4ck3rm1k3/perl5
make PREFIX=/home/h4ck3rm1k3/perl5
make install PREFIX=/home/h4ck3rm1k3/perl5
sqlite3
麦克