我已經在兩臺不同的計算機上安裝了PostgreSQL,但沒有問題,但是當涉及到我自己的筆記本電腦時,我無法構建它。使用MacPorts在Mac OS X 10.5上安裝PostgreSQL時出錯
當我做這個命令:
sudo port install postgresql83
我得到這個錯誤:
checking test program... failed
configure: error:
Could not execute a simple test program. This may be a problem
related to locating shared libraries. Check the file 'config.log'
for the exact reason.
Error: The following dependencies failed to build: postgresql83
Error: Status 1 encountered during processing.
該文件的config.log是7000線長,沒有明顯的問題,我可以看到(它說「退出1「在最後一行,但!)。
我確實有開發人員工具和未安裝的軟件,我已更新到最新版本的MacPorts並同步化了我的端口樹。我可以通過MacPorts安裝其他東西。
我對這個意思是什麼細節而徒勞無功。有什麼建議麼?謝謝!
更新:我覺得這是什麼原因造成它(從的config.log)失敗:
configure:8307: ./conftest
dyld: Library not loaded: /opt/local/lib/libxml2.2
Referenced from: /opt/local/lib/libxslt.1.dylib
Reason: image not found
我已經安裝了libxml2的,但也許它搞砸了。我卸載了libxml2和libxslt並重新安裝它們,所以我們會看到會發生什麼。
你能發佈最後幾行的config.log嗎?這個文件往往是非常詳細的,但在那裏的某個地方有命令,實際上失敗了...... – VolkA 2009-02-24 16:42:03