由于libiconv.2.dylib,PHP升级失败。我应该用符号链接吗?

时间:2016-01-02 21:19:05

标签: macports dylib php-5.6 otool libiconv

我正在尝试从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

我有:

  1. 没有为dylib设置环境变量
  2. otool -L /opt/local/lib/libiconv.2.dylib返回:/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
  3. port installed返回libiconv @1.14_0 (active),最新版本。
  4. 看起来像:

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

0 个答案:

没有答案