我正在尝试从PHP 5.5升级到PHP 5.6。然后,我在curl
安装时收到以下错误:
Executing post-install script /tmp/5.6-10.10-frontenddev-post-install
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /opt/local/bin/grep
Reason: Incompatible library version: grep requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
Restarting Apache
我有:
otool -L /opt/local/lib/libiconv.2.dylib
返回:/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
port installed
返回libiconv @1.14_0 (active)
,最新版本。看起来像:
otool -DL /usr/lib/libiconv.2.dylib
返回:
/usr/lib/libiconv.2.dylib:
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
因此PHP安装正在访问系统版本。我怎样才能指向本地lib版本?
现在尝试sudo port -n upgrade --force libiconv
..