- Code: Select all
/Applications/ZendServer/bin/php -v
dyld: Library not loaded: /usr/local/postgresql-8.2.3/lib/libpq.5.dylib
Referenced from: /Applications/ZendServer/bin/php
Reason: image not found
It should be loading it from /Applications/ZendServer/lib/libpq.5.dylib, but it's clearly looking in the wrong place. I fixed that and got all these (one at a time, just to be really tedious!):
- Code: Select all
dyld: Library not loaded: /usr/local/zend/lib/mysql/libmysqlclient.15.dylib
Referenced from: /Applications/ZendServer/bin/php
dyld: Library not loaded: /usr/local/Zend/Core/lib/libssl.0.9.8.dylib
Referenced from: /Applications/ZendServer/lib/php_extensions/curl.so
dyld: Library not loaded: /usr/local/Zend/Core/lib/libcrypto.0.9.8.dylib
Referenced from: /Applications/ZendServer/lib/php_extensions/curl.so
dyld: Library not loaded: /usr/local/openssl-0.9.8i/lib/libcrypto.0.9.8.dylib
Referenced from: /Applications/ZendServer/lib/php_extensions/imap.so
dyld: Library not loaded: /usr/local/Zend/Core/lib/libpng.3.dylib
Referenced from: /Applications/ZendServer/lib/php_extensions/gd.so
dyld: Library not loaded: /usr/local/zend/lib/libmcrypt.4.dylib
Referenced from: /Applications/ZendServer/lib/php_extensions/mcrypt.so
dyld: Library not loaded: libicui18n.dylib.36
Referenced from: /Applications/ZendServer/lib/php_extensions/intl.so
dyld: Library not loaded: libicuuc.dylib.36
Referenced from: /Applications/ZendServer/lib/php_extensions/intl.so
dyld: Library not loaded: libicudata.dylib.36
Referenced from: /Applications/ZendServer/lib/php_extensions/intl.so
dyld: Library not loaded: libicuio.dylib.36
Referenced from: /Applications/ZendServer/lib/php_extensions/intl.so
dyld: Library not loaded: /usr/local/imagick/lib/libMagickWand.1.dylib
Referenced from: /Applications/ZendServer/lib/php_extensions/imagick.so
This is just a total mess! It's looking in different places for the same lib, has paths that are ambiguous on a case-insensitive FS (i.e. HFS), expects libs to be in the default path. Of course it will all work fine on a build machine that has these libraries installed in those locations, but even the most trivial testing would have spotted this. I worked around these with a bit of judicious copying and symlinking and finally got it working. Please can you build the PHP binary with the right paths?

