The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pecl imagick error

Discussion in 'General Discussion' started by webstyler, Apr 10, 2016.

  1. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Try installing from WHM pecl but get this error:

    --
    Code:
    downloading imagick-3.4.1.tgz ...
    Starting to download imagick-3.4.1.tgz (239,829 bytes)
    .................................................done: 239,829 bytes
    19 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20121113
    Zend Module Api No:      20121212
    Zend Extension Api No:   220121212
    Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-rootnUnV7j/imagick-3.4.1
    running: /root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
    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-20121212
    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 for pkg-config... /usr/bin/pkg-config
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick' failed
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
    No changes
    
    
     
    #1 webstyler, Apr 10, 2016
    Last edited by a moderator: Apr 11, 2016
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    326
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Try last comand, but get warning and error

    info [installimagemagick] scripts/installimagemagick is now deprecated. The ImageMagick from your distro will now be installed
    ..
    make: *** [imagick.lo] Error 1
    ERROR: `make' failed
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please try installing the module with the following commands:

    Code:
    pear config-set preferred_state beta
    pecl install imagick
    Let us know the output.

    Thank you.
     
  5. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    make: *** [imagick.lo] Error 1
    ERROR: `make' failed


    :(
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    downloading imagick-3.4.1.tgz ...
    Starting to download imagick-3.4.1.tgz (239,829 bytes)
    .................................................done: 239,829 bytes
    19 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20121113
    Zend Module Api No: 20121212
    Zend Extension Api No: 220121212
    Please provide the prefix of Imagemagick installation [autodetect] :
    building in /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1
    running: /root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
    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-20121212
    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 for pkg-config... /usr/bin/pkg-config
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... It exists
    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 or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
    checking PHP version is at least 5.1.3... yes. found 5.5.31
    libs
    -lMagickWand -lMagickCore


    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... 1572864
    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... yes
    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
    running: make
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick_file.c -o imagick_file.lo
    mkdir .libs
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick_file.c -fPIC -DPIC -o .libs/imagick_file.o
    /root/tmp/pear/imagick/imagick_file.c: In function ‘php_imagick_is_url’:
    /root/tmp/pear/imagick/imagick_file.c:85: warning: passing argument 2 of ‘php_stream_locate_url_wrapper’ from incompatible pointer type
    /usr/local/include/php/main/php_streams.h:552: note: expected ‘char **’ but argument is of type ‘const char **’
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick_class.c -o imagick_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimagematte’:
    /root/tmp/pear/imagick/imagick_class.c:299: warning: ‘MagickGetImageMatte’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
    /root/tmp/pear/imagick/imagick_class.c:1240: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
    /root/tmp/pear/imagick/imagick_class.c:1248: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_recolorimage’:
    /root/tmp/pear/imagick/imagick_class.c:1729: warning: ‘MagickRecolorImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
    /root/tmp/pear/imagick/imagick_class.c:4260: warning: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_mapimage’:
    /root/tmp/pear/imagick/imagick_class.c:4686: warning: ‘MagickMapImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
    /root/tmp/pear/imagick/imagick_class.c:4725: warning: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
    /root/tmp/pear/imagick/imagick_class.c:4762: warning: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:212)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
    /root/tmp/pear/imagick/imagick_class.c:4843: warning: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
    /root/tmp/pear/imagick/imagick_class.c:4924: warning: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
    /root/tmp/pear/imagick/imagick_class.c:5087: warning: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:260)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
    /root/tmp/pear/imagick/imagick_class.c:6410: warning: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
    /root/tmp/pear/imagick/imagick_class.c:6626: warning: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
    /root/tmp/pear/imagick/imagick_class.c:6963: warning: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimageindex’:
    /root/tmp/pear/imagick/imagick_class.c:8071: warning: ‘MagickGetImageIndex’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_getimagesize’:
    /root/tmp/pear/imagick/imagick_class.c:8186: warning: ‘MagickGetImageSize’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
    /root/tmp/pear/imagick/imagick_class.c:8658: warning: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_flattenimages’:
    /root/tmp/pear/imagick/imagick_class.c:9032: warning: ‘MagickFlattenImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_averageimages’:
    /root/tmp/pear/imagick/imagick_class.c:10215: warning: ‘MagickAverageImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131)
    /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
    /root/tmp/pear/imagick/imagick_class.c:10715: warning: ‘MagickMosaicImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135)
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagickdraw_class.c -o imagickdraw_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagickdraw_class.c -fPIC -DPIC -o .libs/imagickdraw_class.o
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagickpixel_class.c -o imagickpixel_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagickpixel_class.c -fPIC -DPIC -o .libs/imagickpixel_class.o
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagickpixeliterator_class.c -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick_helpers.c -o imagick_helpers.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick_helpers.c -fPIC -DPIC -o .libs/imagick_helpers.o
    /bin/sh /root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick.c -o imagick.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/include -I/root/tmp/pear/pear-build-rootEUsZEp/imagick-3.4.1/main -I/root/tmp/pear/imagick -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 /root/tmp/pear/imagick/imagick.c -fPIC -DPIC -o .libs/imagick.o
    In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
    from /root/tmp/pear/imagick/imagick.c:37:
    /usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
    In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
    from /root/tmp/pear/imagick/imagick.c:37:
    /usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    /usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’
    make: *** [imagick.lo] Error 1
    ERROR: `make' failed
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please post the output from the following command:

    Code:
    rpm -qa|grep pcre
    Thank you.
     
  9. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    pcre-7.8-7.el6.x86_64
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  11. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Thanks Michael
    Now WORK :)
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  13. Wisam Mahmood

    Wisam Mahmood Registered

    Joined:
    May 8, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Dubai - UAE
    cPanel Access Level:
    Root Administrator

    Dear cPanel Support,

    I have the same issue of webstyler I have tried all the steps that was indicted her but I'm still getting the same error, Please help?!

    Code:
    
    Run the command: yum install pcre-devel
    
    Result: Failed to set locale, defaulting to C
    
    Loaded plugins: fastestmirror, security
    
    Setting up Install Process
    
    Loading mirror speeds from cached hostfile
    
    Package pcre-devel-7.8-7.el6.x86_64 already installed and latest version
    
    Nothing to do
    
    _________________________
    
    Run the command: pear config-set preferred_state beta
    
    Result: config-set succeeded
    
    __________________________
    
    Run the command:  pecl install imagick
    
    Result: downloading imagick-3.4.2.tgz ...
    
    Starting to download imagick-3.4.2.tgz (239,574 bytes)
    
    .................................................done: 239,574 bytes
    
    19 source files, building
    
    running: phpize
    
    Configuring for:
    
    PHP Api Version:         20131106
    
    Zend Module Api No:      20131226
    
    Zend Extension Api No:   220131226
    
    perl: warning: Setting locale failed.
    
    perl: warning: Please check that your locale settings:
    
        LANGUAGE = (unset),
    
        LC_ALL = (unset),
    
        LC_CTYPE = "UTF-8",
    
        LANG = "en_US.UTF-8"
    
        are supported and installed on your system.
    
    perl: warning: Falling back to the standard locale ("C").
    
    perl: warning: Setting locale failed.
    
    perl: warning: Please check that your locale settings:
    
        LANGUAGE = (unset),
    
        LC_ALL = (unset),
    
        LC_CTYPE = "UTF-8",
    
        LANG = "en_US.UTF-8"
    
        are supported and installed on your system.
    
    perl: warning: Falling back to the standard locale ("C").
    
    Please provide the prefix of Imagemagick installation [autodetect] :
    
    building in /root/tmp/pear/pear-build-rootmATzzK/imagick-3.4.2
    
    running: /root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
    
    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-20131226
    
    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 for pkg-config... /usr/bin/pkg-config
    
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    
    ERROR: `/root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick' failed
    
    
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The error message suggests you have not installed Imagemagick on this system. If that's the case, ensure you review this thread before installing it:

    cPanel Security Team - CVE-2016-3714 ImageMagick

    Thank you.
     
Loading...

Share This Page