5
我自己配置了PHP,包括了我需要的所有庫......但後來意識到我忘記了freetype庫。編譯PHP錯誤與freetype
於是我又回到我的php-5.3.2目錄並運行的./configure '--with自由型=的/ usr/local/lib目錄'
PHP做的配置很好,沒有任何錯誤。
但是當我運行make:
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
東西頻繁出現:
/php-5.3.2/ext/libxml/libxml.c:336: undefined reference to `ts_resource_ex'
/php-5.3.2/ext/sqlite3/sqlite3.c:663: undefined reference to `executor_globals_id'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_callback_final':
/php-5.3.2/ext/sqlite3/sqlite3.c:811: undefined reference to `ts_resource_ex'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_callback_step':
/php-5.3.2/ext/sqlite3/sqlite3.c:799: undefined reference to `ts_resource_ex'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_callback_func':
/php-5.3.2/ext/sqlite3/sqlite3.c:788: undefined reference to `ts_resource_ex'
ext/sqlite3/.libs/sqlite3.o: In function `php_sqlite3_authorizer':
/php-5.3.2/ext/sqlite3/sqlite3.c:1782: undefined reference to `ts_resource_ex'
/php-5.3.2/ext/sqlite3/sqlite3.c:1787: undefined reference to `core_globals_id'
ext/sqlite3/.libs/sqlite3.o: In function `zim_sqlite3_open':
/php-5.3.2/ext/sqlite3/sqlite3.c:161: undefined reference to `core_globals_id'
/php-5.3.2/ext/sqlite3/sqlite3.c:123: undefined reference to `core_globals_id'
未定義的基準出現了幾件事情。
所以它在這裏失敗,但它並沒有當我最初編譯PHP。這是怎麼回事?我需要重新配置整個事情嗎?
在此先感謝。
@羅伯特羅斯:獲取更多的錯誤數據以上,本網站上的人更喜歡一些compilator錯誤。 – Svisstack 2010-05-01 19:03:47
謝謝!增加了更多細節。 – 2010-05-01 19:17:00
你嘗試過「乾淨」嗎? – VolkerK 2010-05-01 19:50:27