I am trying to upgrade to PHP 5.6 from PHP 5.5. Then I receive the following error on curl
install:
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
I have:
- No environment variables set for dylib
otool -L /opt/local/lib/libiconv.2.dylib
returns:/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
port installed
returnslibiconv @1.14_0 (active)
, the latest version.
It looks like:
otool -DL /usr/lib/libiconv.2.dylib
returns:
/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)
So the system version is being accessed by PHP install. How can I make it point to the local lib version?
Trying sudo port -n upgrade --force libiconv
for now..