【问题标题】:How do I build SQLite3 from command line?如何从命令行构建 SQLite3?
【发布时间】:2010-11-20 20:09:22
【问题描述】:

我对从命令行构建软件有点生疏。每当我不得不这样做时,我只需要按照指示进行操作..所以当出现问题时,我不需要工具来解决问题......就像今天一样。我在运行 OS X 10.5.8 (Leopard) 的 PowerPC Mac 上构建 SQLite3 时遇到了问题。

这是我要遵循的“说明”:

$ curl -O http://sqlite.org/sqlite-amalgamation-3.6.21.tar.gz
$ tar xzf sqlite-amalgamation-3.6.21.tar.gz
$ cd sqlite-3.6.421
$ ./configure –prefix=/usr/local
$ make
$ sudo make install

这就是我正在做的......

$ pwd
/usr/local/src
$ curl -O http://sqlite.org/sqlite-amalgamation-3.7.3.zip
$ unzip sqlite-amalgamation-3.7.3.zip
$ ls -l
total 9096
-rw-r--r--@ 1 elvis  admin    82346 Oct  7 19:37 shell.c
-rw-r--r--  1 elvis  admin  1217170 Nov 20 11:47 sqlite-amalgamation-3_7_3.zip
-rw-r--r--@ 1 elvis  admin  4245940 Oct  7 19:36 sqlite3.c
-rw-r--r--@ 1 elvis  admin     3961 Oct  7 19:37 sqlite3.def
-rw-r--r--@ 1 elvis  admin   291339 Oct  7 19:37 sqlite3.h
-rw-r--r--@ 1 elvis  admin    20686 Oct  7 19:37 sqlite3ext.h
$ ./configure –prefix=/usr/local
-bash: ./configure: No such file or directory

我是否缺少 配置 文件?我有错误的来源吗?我抓住了 zip 版本,因为我找不到 tarball(虽然看起来不太难)。

如何构建 sqlite3 使其安装在 /usr/local 中?

【问题讨论】:

    标签: macos sqlite command-line build makefile


    【解决方案1】:

    您必须 cd 进入新的 in-tarred 文件夹,然后运行 ​​./configure。另外,使用焦油。这样更好。

    所以:cd sqlit(点击标签) ./config...

    【讨论】:

    • 我找不到压缩包,因为版本号命名与http://sqlite.org/sqlite-amalgamation-3.7.3.tar.gz3_7_3.zip 略有不同。无论如何,明白了。它安装无痛...谢谢!
    猜你喜欢
    • 1970-01-01
    • 2018-01-22
    • 2021-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-03
    • 2011-03-26
    • 1970-01-01
    相关资源
    最近更新 更多