PHP Startup: Unable to load dynamic library '/usr/local/php/

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

PHP Startup: Unable to load dynamic library '/usr/local/php/

Post by dave »

My platform is AIX 6.1

I have a working build of ImageMagick 6.8.5-6

Now I am trying to get IMagick 3.1.0 RC2 built, but I am running into issues building a shared library.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/extensions/imagick.so' -
rtld: 0712-001 Symbol MagickWriteImageFile was referenced
from module /usr/local/php/extensions/imagick.so(), but a runtime definition
of the symbol was not found.
...several other ImageMagick symbols and sqrt() reported as not being found....

I found that by modifying a couple variables in the Makefile, that the errors went away and IMagick appears to be working fine. (still testing)

EXTRA_LDFLAGS = -lm
IMAGICK_SHARED_LIBADD = /usr/local/lib/libMagickCore-6.Q16.a /usr/local/lib/libMagickWand-6.Q16.a

I'm wondering if I missed something in my configure step? Or a problem with the software ?

My configure:

./configure --enable-shared \
--with-php-config=/usr/local/php/bin/php-config
Post Reply