2010-11-20 83 views
0

我從命令行構建軟件時有點生疏。每當我不得不這樣做,我只是按照指示..因此,我不需要工具來排除故障時的故障......像今天一樣。我遇到了一個問題,試圖在運行OS X 10.5.8(Leopard)的PowerPC Mac上構建SQLite3。如何從命令行構建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 
[email protected] 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 
[email protected] 1 elvis admin 4245940 Oct 7 19:36 sqlite3.c 
[email protected] 1 elvis admin  3961 Oct 7 19:37 sqlite3.def 
[email protected] 1 elvis admin 291339 Oct 7 19:37 sqlite3.h 
[email protected] 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中?

回答

1

您必須cd進入新的tar目錄文件夾,然後運行./configure。另外,使用焦油。這更好。

所以:CD sqlit(打標籤) ./config中......

+0

我找不到壓縮包,因爲版本號命名略有不同'http://sqlite.org/sqlite-amalgamation- 3.7.3.tar.gz'而不是'3_7_3.zip'。無論如何,明白了。它無痛地安裝......謝謝! – Meltemi 2010-11-20 20:35:58