ericovk
Verified User
Thank you, that helped. I removed the function names that gave an error because they were in disable_functions. The error messages disapeard!
error while loading shared libraries: libMagickCore-6.Q16.so.1: cannot open shared object file: No such file or directory
ldconfig /usr/local/lib
in php5.4 i install imagemagic but i get this massage:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
.........................................
php5.4 and imagemagic not compatible!!?
Can this problem be solved?
[root@web ~]# find / -name phpize
/usr/local/php54/bin/phpize
/usr/local/php55/bin/phpize
[root@web ~]# find / -name php-config
/usr/local/php54/bin/php-config
/usr/local/php55/bin/php-config
/usr/local/php54/bin/phpize
./configure --with-php-config=/usr/local/php54/bin/php-config
make
make install
Try the following if you're on Centos or alike:
yum install php-devel ImageMagick ImageMagick-devel
pecl install Imagick
don't forget to add this to php.ini
extension=imagick.so
and then
service httpd restart
Try the following if you're on Centos or alike:
yum install php-devel ImageMagick ImageMagick-devel
pecl install Imagick
don't forget to add this to php.ini
extension=imagick.so
and then
service httpd restart
wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar zxf imagick-3.0.1.tgz
cd imagick-3.0.1
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
diff Makefile_deb7 /usr/src/imagick-3.0.1/Makefile_deb6
14c14
< IMAGICK_SHARED_LIBADD = -lMagickWand -lMagickCore
---
> IMAGICK_SHARED_LIBADD = -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lltdl
44c44
< SHELL = /bin/bash
---
> SHELL = /bin/sh
146d145
< TEST_RESULT_EXIT_CODE=$$?; \
148d146
< exit $$TEST_RESULT_EXIT_CODE; \
# /usr/bin/MagickWand-config-deb6 --libs
-L/usr/lib -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl
# /usr/bin/MagickWand-config-deb7 --libs
-lMagickWand -lMagickCore
imagick=yes/no is now a CB 2.0 options from rev. 2109 (defaults to "no"). Thank you!![]()