I also had problems when installing ImageMagick
[root@siakbary ~]# sh /scripts/install_imagick
CWP Imagick Installer
################################
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.us.leaseweb.net
* extras: mirror.us.leaseweb.net
* rpmforge: mirror.teklinks.com
* updates: mirror.us.leaseweb.net
Package ImageMagick-6.7.2.7-2.el6.x86_64 already installed and latest version
Package ImageMagick-devel-6.7.2.7-2.el6.x86_64 already installed and latest version
Package ImageMagick-perl-6.7.2.7-2.el6.x86_64 already installed and latest version
Nothing to do
--2016-04-16 19:43:02-- http://pecl.php.net/get/imagick-3.1.0RC2.tgz
Resolving pecl.php.net... 104.236.228.160
Connecting to pecl.php.net|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93264 (91K) [application/octet-stream]
Saving to: `imagick-3.1.0RC2.tgz'
100%[===================================================================================================================================================================================================>] 93,264 --.-K/s in 0.07s
2016-04-16 19:43:02 (1.35 MB/s) - `imagick-3.1.0RC2.tgz' saved [93264/93264]
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
ln: creating symbolic link `/usr/local/include/ImageMagick': File exists
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.7.2 Q16
checking for MagickWand.h header file... found in /usr/include/ImageMagick/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 7.1.0-dev
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1966080
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
/bin/sh /usr/local/src/imagick-3.1.0RC2/libtool --mode=compile cc -I. -I/usr/local/src/imagick-3.1.0RC2 -DPHP_ATOM_INC -I/usr/local/src/imagick-3.1.0RC2/include -I/usr/local/src/imagick-3.1.0RC2/main -I/usr/local/src/imagick-3.1.0RC2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/imagick-3.1.0RC2/imagick_file.c -o imagick_file.lo
mkdir .libs
cc -I. -I/usr/local/src/imagick-3.1.0RC2 -DPHP_ATOM_INC -I/usr/local/src/imagick-3.1.0RC2/include -I/usr/local/src/imagick-3.1.0RC2/main -I/usr/local/src/imagick-3.1.0RC2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/imagick-3.1.0RC2/imagick_file.c -fPIC -DPIC -o .libs/imagick_file.o
/usr/local/src/imagick-3.1.0RC2/imagick_file.c: In function 'php_imagick_is_url':
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:52: warning: passing argument 2 of 'php_stream_locate_url_wrapper' from incompatible pointer type
/usr/local/include/php/main/php_streams.h:565: note: expected 'const char **' but argument is of type 'char **'
/usr/local/src/imagick-3.1.0RC2/imagick_file.c: In function 'php_imagick_read_image_using_php_streams':
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:156: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:156: error: (Each undeclared identifier is reported only once
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:156: error: for each function it appears in.)
make: *** [imagick_file.lo] Error 1
/bin/sh /usr/local/src/imagick-3.1.0RC2/libtool --mode=compile cc -I. -I/usr/local/src/imagick-3.1.0RC2 -DPHP_ATOM_INC -I/usr/local/src/imagick-3.1.0RC2/include -I/usr/local/src/imagick-3.1.0RC2/main -I/usr/local/src/imagick-3.1.0RC2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/imagick-3.1.0RC2/imagick_file.c -o imagick_file.lo
cc -I. -I/usr/local/src/imagick-3.1.0RC2 -DPHP_ATOM_INC -I/usr/local/src/imagick-3.1.0RC2/include -I/usr/local/src/imagick-3.1.0RC2/main -I/usr/local/src/imagick-3.1.0RC2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/imagick-3.1.0RC2/imagick_file.c -fPIC -DPIC -o .libs/imagick_file.o
/usr/local/src/imagick-3.1.0RC2/imagick_file.c: In function 'php_imagick_is_url':
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:52: warning: passing argument 2 of 'php_stream_locate_url_wrapper' from incompatible pointer type
/usr/local/include/php/main/php_streams.h:565: note: expected 'const char **' but argument is of type 'char **'
/usr/local/src/imagick-3.1.0RC2/imagick_file.c: In function 'php_imagick_read_image_using_php_streams':
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:156: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function)
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:156: error: (Each undeclared identifier is reported only once
/usr/local/src/imagick-3.1.0RC2/imagick_file.c:156: error: for each function it appears in.)
make: *** [imagick_file.lo] Error 1
extension=imagick.so
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
Imagick NOT Installed !
What should I do?
info:
[root@siakbary ~]# curl http://dl1.centos-webpanel.com/files/s_scripts/sinfo.sh|sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
113 792 113 792 0 0 2638 0 --:--:-- --:--:-- --:--:-- 7333
===============================================
Kernel:
Linux siakbary.my.id 2.6.32-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
CPU info:
model name : Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Release:
CentOS release 6.7 (Final)
Arch:
x86_64
Virtualization Type:
openvz
Memory:
total used free shared buffers cached
Mem: 3072 1969 1102 5 0 993
-/+ buffers/cache: 975 2096
Swap: 768 75 692
MySQL info:
mysql Ver 15.1 Distrib 10.1.13-MariaDB, for Linux (x86_64) using readline 5.1
Disk Info:
Filesystem Size Used Avail Use% Mounted on
/dev/ploop38139p1 59G 6.4G 50G 12% /
none 1.5G 4.0K 1.5G 1% /dev
none 1.5G 0 1.5G 0% /dev/shm
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
Apache PHP info
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.1.0-dev (cli) (built: Apr 8 2016 20:01:20) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
Apache start script check
httpd=${HTTPD-/usr/local/apache/bin/httpd}
CWP Admin check
/usr/local/cwpsrv/htdocs/admin
===============================================