简体   繁体   English

如何从命令行构建SQLite3?

[英]How do I build SQLite3 from command line?

I'm kind of rusty at building software from the command line. 我对从命令行构建软件有些不满意。 whenever i've had to do it I just follow directions..so i don't have to tools to troubleshoot when something goes wrong...as it has today. 每当我必须这样做时,我就按照指示进行操作。因此,当今天出现问题时,我不必使用工具来进行故障排除。 I've run into a problem trying to build SQLite3 on a PowerPC Mac running OS X 10.5.8 (Leopard). 我在尝试在运行OS X 10.5.8(Leopard)的PowerPC Mac上构建SQLite3时遇到问题。

here are the "instructions" i'm following: 这是我遵循的“说明”:

$ 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

And here's what I'm doing... 这就是我在做什么...

$ 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

Am I missing a configure file? 我是否缺少配置文件? Do I have the wrong source? 我的来源有误吗? I grabbed the zip version because I couldn't find the tarball (though admittedly didn't look too hard). 我抓到了zip版本,因为我找不到压缩包(尽管看上去并不太难)。

How do I build sqlite3 so it installs in /usr/local? 如何构建sqlite3,使其安装在/ usr / local中?

You must cd into the new in-tarred folder, then run ./configure. 您必须cd进入新的in-tarred文件夹,然后运行./configure。 Also, use tar. 另外,请使用tar。 It's better. 好多了

So: cd sqlit (hit tab) ./config... 因此:cd sqlit(命中选项卡)./ config ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM