我已经使用 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 安装其他东西。
我用谷歌搜索了这意味着什么,但没有结果。有什么建议么?谢谢!
更新:我think这就是导致它失败的原因(来自 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 并重新安装它们,所以我们看看会发生什么。
这是关键:
configure:8307: ./conftest
dyld: Library not loaded: /opt/local/lib/libxml2.2
Referenced from: /opt/local/lib/libxslt.1.dylib
Reason: image not found
这并不位于 config.log 的底部附近,而是位于第 700 行左右。
尽管我已经将 libxml 升级到适当的版本(这是我之前安装 postgresql 时必须解决的问题),但它无法与 libxslt 一起使用。
我卸载了 libxml (我已经安装的两个版本)和 libxslt,然后再次安装了 postgresql,这次它能够构建。
如果你在构建 postgresql 时遇到这样的错误,请检查库。
顺便说一句,config.log 文件可以在如下位置找到:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6/config.log
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)