且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用MacPorts在Mac OS X 10.5上安装PostgreSQL时出错

更新时间:2022-11-25 19:45:42

这是关键:

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行.

This was not near the bottom of the config.log, it was at about line 700.

尽管我已经将libxml升级到了适当的版本(这是我以前在安装postgresql时必须解决的问题),但是它不能与libxslt一起使用.

Despite the fact that I'd already upgraded libxml to the appropriate version (which has been a problem I've had to address previously when installing postgresql) it was not working with libxslt.

我卸载了libxml(我已经安装的两个版本)和libxslt,然后再次安装了postgresql,这次它可以构建了.

I uninstalled libxml (both versions I had installed) and libxslt and then installed postgresql again, and this time it was able to build.

如果遇到类似此构建postgresql的错误,请签出库.

If you get an error like this building postgresql, check out libraries.

顺便说一句,可以在以下位置找到config.log文件:

BTW, the config.log file can be found in a location like this:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6/config.log