我已经在几台不同的计算机上使用 MacPorts 安装了 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 行长,我看不到明显的问题(不过,它在最后一行显示“exit 1”!)。
我确实有开发者工具和没有安装的东西,我已经更新到最新版本的 MacPorts 并同步了我的端口树。我可以通过 MacPorts 安装其他东西。
我在 Google 上搜索了有关这意味着什么的详细信息,但徒劳无功。有什么建议么?谢谢!
更新:我认为这是导致它失败的原因(来自 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 并重新安装它们,所以我们将看看会发生什么。