2011-02-24 86 views
2

我想在Mac OS X 10.5上從源代碼編譯MySQL。我從MySQL's download page的「源代碼」部分下載了我認爲是正確的源代碼。標籤上寫着「通用Linux(獨立於架構),壓縮TAR檔案」;該文件的可用hereMySQL源代碼丟失配置文件

此問題與另一個問題here非常相似,但該問題已過時,並沒有幫助我。它的答案提出我已經「下載了二進制版本,而不是源代碼」。如果我沒有正確的下載,有人能指出我的方向嗎?

當我取消存檔tar.gz文件時,沒有名爲configure的文件。這裏是目錄的樣子:

[email protected] 63 xxxx xxxx 2142 Jan 19 15:37 BUILD 
[email protected] 1 xxxx xxxx 8479 Jan 19 15:37 BUILD-CMAKE 
[email protected] 1 xxxx xxxx 12080 Jan 19 15:37 CMakeLists.txt 
[email protected] 1 xxxx xxxx 17987 Jan 19 15:37 COPYING 
[email protected] 9 xxxx xxxx  306 Jan 19 15:37 Docs 
[email protected] 1 xxxx xxxx 342250 Jan 19 15:37 INSTALL-SOURCE 
[email protected] 1 xxxx xxxx  324 Jan 19 15:37 INSTALL-WIN-SOURCE 
[email protected] 1 xxxx xxxx 113534 Jan 19 15:37 README 
[email protected] 1 xxxx xxxx  87 Jan 19 15:37 VERSION 
[email protected] 22 xxxx xxxx  748 Jan 19 15:37 client 
[email protected] 33 xxxx xxxx 1122 Jan 19 15:37 cmake 
[email protected] 4 xxxx xxxx  136 Jan 19 15:37 cmd-line-utils 
[email protected] 1 xxxx xxxx 18312 Jan 19 15:37 config.h.cmake 
[email protected] 1 xxxx xxxx 33945 Jan 19 15:37 configure.cmake 
[email protected] 18 xxxx xxxx  612 Jan 19 15:37 dbug 
[email protected] 13 xxxx xxxx  442 Jan 19 15:37 extra 
[email protected] 72 xxxx xxxx 2448 Jan 19 15:37 include 
[email protected] 10 xxxx xxxx  340 Jan 19 15:37 libmysql 
[email protected] 12 xxxx xxxx  408 Jan 19 15:37 libmysqld 
[email protected] 8 xxxx xxxx  272 Jan 19 15:37 libservices 
[email protected] 50 xxxx xxxx 1700 Jan 19 15:37 man 
[email protected] 19 xxxx xxxx  646 Jan 19 15:37 mysql-test 
[email protected] 123 xxxx xxxx 4182 Jan 19 15:37 mysys 
[email protected] 3 xxxx xxxx  102 Jan 19 15:37 packaging 
[email protected] 7 xxxx xxxx  238 Jan 19 15:37 plugin 
[email protected] 30 xxxx xxxx 1020 Jan 19 15:37 regex 
[email protected] 31 xxxx xxxx 1054 Jan 19 15:37 scripts 
[email protected] 303 xxxx xxxx 10302 Jan 19 15:37 sql 
[email protected] 35 xxxx xxxx 1190 Jan 19 15:37 sql-bench 
[email protected] 7 xxxx xxxx  238 Jan 19 15:37 sql-common 
[email protected] 13 xxxx xxxx  442 Jan 19 15:37 storage 
[email protected] 59 xxxx xxxx 2006 Jan 19 15:37 strings 
[email protected] 27 xxxx xxxx  918 Jan 19 15:37 support-files 
[email protected] 37 xxxx xxxx 1258 Jan 19 15:37 tests 
[email protected] 8 xxxx xxxx  272 Jan 19 15:37 unittest 
[email protected] 15 xxxx xxxx  510 Jan 19 15:37 vio 
[email protected] 3 xxxx xxxx  102 Jan 19 15:37 win 
[email protected] 32 xxxx xxxx 1088 Jan 19 15:37 zlib 

find . -name 'configure'什麼也沒有返回。

我錯過了什麼嗎?

回答

4

類型cmake構建MySQL。這在installing from source的說明中有描述。 (我認爲這也是在壓縮包中INSTALLREADME文件解釋,但我有困難下載壓縮包)。

+0

啊哈,傻我。看來我在查看5.1而不是5.5的文檔。謝謝! – 2011-02-24 22:14:18

1

您已經下載了二進制版本,而不是

這是你得到配置錯誤的原因。

:)