Welcome to Centmin Mod Community
Become a Member

PHP-FPM Imagemagick installation problems after upgrading centminmod

Discussion in 'Install & Upgrades or Pre-Install Questions' started by SneakyDave, Dec 11, 2015.

  1. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    Ok, as a continuation of this post:
    MariaDB - Doing the Maria DB upgrade from 5.5 to 10.x | Centmin Mod Community


    When php-fpm restarts, I get an error that it doesn't like the reference to imagemagick (as well as redis, but baby steps)...
    Code:
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [10-Dec-2015 15:05:15] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    [10-Dec-2015 15:05:15] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    done
    
    And just like the error indicates, the module doesn't exist in the directory it thinks it should.

    When I run centminmod, option 15 (Install/Reinstall ImagicK PHP Extension), I get the same type of error.
    Code:
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 15
    --------------------------------------------------------
    Check for php extensions
    *************************************************
    * Installing imagick PHP Extension
    *************************************************
    /usr/local/src/centminmod
    cd /svr-setup
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    1
    inc/imagick_install.inc: line 51: cd: imagick-3.3.0RC2: No such file or directory
    make: *** No rule to make target `clean'.  Stop.
    Cannot find config.m4.
    Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
    
    inc/imagick_install.inc: line 56: ./configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    
    Copying imagick.ini > /etc/centminmod/php.d/imagick.ini
    
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [10-Dec-2015 15:05:15] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    [10-Dec-2015 15:05:15] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    done
    *************************************************
    * imagick PHP installed
    *************************************************
    
    The module is located in these directories though:
    Code:
    [root@xxxxx/]# find . -name imagick.so
    ./svr-setup/imagick-3.1.2/.libs/imagick.so
    ./svr-setup/imagick-3.1.2/modules/imagick.so
    ./usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so
    
    According to yum:
    Code:
    Package ImageMagick-6.7.2.7-2.el6.x86_64 already installed and latest version
    Nothing to do
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    php version ?
    Code:
    php -v
    php -m
    try removing /etc/centminmod/php.d/imagick.ini and rerunning centmin.sh menu option 15
    Code:
    rm -rf /etc/centminmod/php.d/imagick.ini
    but i think the problem is imagick tarball for 3.3.0RC2 didn't download
    Code:
    inc/imagick_install.inc: line 51: cd: imagick-3.3.0RC2: No such file or directory
    oooh there's newer 3.40RC2 and 3.30 stable series now PECL :: Package :: imagick ! so need to update Centmin Mod
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    maybe incomplete imagick tarball download so removing existing one at /svr-setup
    Code:
    rm -rf /svr-setup/imagick*
    and try centmin.sh menu option 15 again
     
  5. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    Version:
    PHP 5.4.45 (cli) (built: Dec 10 2015 06:26:01)

    Modules:
    Code:
    [PHP Modules]
    bbcode
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    ereg
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcache
    memcached
    mhash
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
    Removing the imagck.ini file didn't help

    But ImageMagick seems to work ok. My XenForo installation recognizes that the library is present, and it appears to be doing imagemagick functions.
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange indeed

    Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific error log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing.

    Use this command to list all logs in /root/centminlogs in date descending order so most recent logs are at bottom
    Code:
    ls -lAhrt /root/centminlogs
    For example
    Code:
    ls -lAhrt /root/centminlogs
    total 16M
    -rw-r--r-- 1 root root 9.8K Sep 18 13:47 centminmod_1.2.3-eva2000.08_180915-094703_yuminstall_centos6.log
    -rw-r--r-- 1 root root 52K Sep 18 13:48 centminmod_yumtimes_180915-094703.log
    -rw-r--r-- 1 root root 37 Sep 18 13:48 centminmod_profiletimes_180915-094703.log
    -rw-r--r-- 1 root root 234K Sep 18 13:48 centminmod_downloadtimes_180915-094703.log
    -rw-r--r-- 1 root root 199 Sep 18 13:48 securedtmp.log
    -rw-r--r-- 1 root root 44 Sep 18 13:50 centminmod_libresslinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 1.2K Sep 18 13:50 gcc_native.log
    -rw-r--r-- 1 root root 939K Sep 18 13:52 centminmod_ngxinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 58 Sep 18 13:55 centminmod_phpinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 25K Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_yum-log.log
    -rw-r--r-- 1 root root 20 Sep 18 13:59 install.utc.time.log
    -rw-r--r-- 1 root root 2.6M Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_install.log
    -rw-r--r-- 1 root root 49 Sep 18 13:59 firstyum_installtime_180915-094252.log
    -rw-r--r-- 1 root root 12K Sep 18 14:02 centminmod_1.2.3-eva2000.08_180915-140110_nginx_addvhost.log
    -rw-r--r-- 1 root root 1.8M Sep 19 05:58 centminmod_1.2.3-eva2000.08_190915-055517_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:22 centminmod_1.2.3-eva2000.08_190915-061910_php_upgrade.log
    -rw-r--r-- 1 root root 939K Sep 19 06:28 centminmod_1.2.3-eva2000.08_190915-062728_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:32 centminmod_1.2.3-eva2000.08_190915-062943_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:53 centminmod_1.2.3-eva2000.08_190915-065026_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 07:14 centminmod_1.2.3-eva2000.08_190915-065820_php_upgrade.log
    -rw-r--r-- 1 root root 381 Sep 19 07:15 zendopcache_passfile.txt
    -rw-r--r-- 1 root root 23K Sep 19 07:15 centminmod_1.2.3-eva2000.08_190915-065820_zendopcache_install_submenu.log
    -rw-r--r-- 1 root root 1.5K Sep 19 08:20 centminmod_1.2.3-eva2000.08_190915-081959_git_envsetup.log
    -rw-r--r-- 1 root root 3.6K Sep 19 08:22 centminmod_1.2.3-eva2000.08_190915-082216_git_updatenew_branch.log
    -rw-r--r-- 1 root root 1.8M Sep 19 08:26 centminmod_1.2.3-eva2000.09_190915-082435_php_upgrade.log
    -rw-r--r-- 1 root root 7.8K Sep 20 17:17 centminmod_200915-171650_nginx_addvhost_nv.log
    -rw-r--r-- 1 root root 8.7K Sep 20 19:40 centminmod_1.2.3-eva2000.09_200915-193955_nginx_addvhost.log
    -rw-r--r-- 1 root root 9.3K Sep 20 20:04 centminmod_200915-200339_nginx_addvhost_nv.log
    post the php_upgrade.log and imagick logs to pastebin or gist.github.com so we can check it out
     
  7. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    I don't have any imagick logs identified in that list. I assume you just want the contents of the php logs since I upgraded yesterday, or all of them?
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah just the php upgrade log should be enough
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Also try updating centmin mod code via centmin.sh menu option 23 sub menu option 2 and exit centmin.sh afterwards and re-run centmin.sh and re-run menu option 15 as i just updated centmin mod for imagick 3.4.0RC2 support which includes PHP 7.0 support too
     
  10. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    Great, the new centminmod update forced the imagemagick build to work! Might have been related to what you said about the download of the tgz file not originally working.
    Now to identify that redis problem, but celebrating first.
    Code:
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 15
    --------------------------------------------------------
    Check for php extensions
    Downloading imagick extension
    Download imagick-3.4.0RC2.tgz ...
    Error: imagick-3.4.0RC2.tgz not found !!! Downloading now......
    2015-12-10 17:11:36 URL:https://pecl.php.net/get/imagick-3.4.0RC2.tgz [230995/230995] -> "imagick-3.4.0RC2.tgz" [1]
    Download done.
    imagick-3.4.0RC2.tgz valid file.
    
    *************************************************
    * Installing imagick PHP Extension
    *************************************************
    /svr-setup
    cd /svr-setup
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    1
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20100412
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525
    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 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 ccache gcc accepts -g... yes
    checking for ccache gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache gcc and cc understand -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-20100525
    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... re2c
    checking for re2c version... 0.13.5 (ok)
    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.4.45
    libs
    -lMagickWand -lMagickCore
    
    
    checking for ld used by ccache gcc... /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 ccache gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if ccache gcc supports -fno-rtti -fno-exceptions... no
    checking for ccache gcc option to produce PIC... -fPIC
    checking if ccache gcc PIC flag -fPIC works... yes
    checking if ccache gcc static flag -static works... no
    checking if ccache gcc supports -c -o file.o... yes
    checking whether the ccache gcc 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
    checking whether the ccache g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for ccache g++ option to produce PIC...
    checking if ccache g++ static flag  works... yes
    checking if ccache g++ supports -c -o file.o... yes
    checking whether the ccache g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... unsupported
    configure: creating ./config.status
    config.status: creating config.h
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick_file.c -o imagick_file.lo
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick_class.c -o imagick_class.lo
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickdraw_class.c -o imagickdraw_class.lo
    mkdir .libs
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick_file.c  -fPIC -DPIC -o .libs/imagick_file.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
    /svr-setup/imagick-3.4.0RC2/imagick_file.c: In function ‘php_imagick_is_url’:
    /svr-setup/imagick-3.4.0RC2/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:556: note: expected ‘char **’ but argument is of type ‘const char **’
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickpixel_class.c -o imagickpixel_class.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickpixel_class.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick_helpers.c -o imagick_helpers.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick.c -o imagick.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagick.c  -fPIC -DPIC -o .libs/imagick.o
    /svr-setup/imagick-3.4.0RC2/imagick_helpers.c: In function ‘php_imagick_throw_exception’:
    /svr-setup/imagick-3.4.0RC2/imagick_helpers.c:659: warning: passing argument 2 of ‘zend_throw_exception’ discards qualifiers from pointer target type
    /usr/local/include/php/Zend/zend_exceptions.h:43: note: expected ‘char *’ but argument is of type ‘const char *’
    /svr-setup/imagick-3.4.0RC2/imagick_helpers.c: In function ‘s_convert_exception’:
    /svr-setup/imagick-3.4.0RC2/imagick_helpers.c:670: warning: passing argument 2 of ‘zend_throw_exception’ discards qualifiers from pointer target type
    /usr/local/include/php/Zend/zend_exceptions.h:43: note: expected ‘char *’ but argument is of type ‘const char *’
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickkernel_class.c -o imagickkernel_class.lo
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=compile ccache gcc -fopenmp -I/usr/include/ImageMagick   -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/shim_im6_to_im7.c -o shim_im6_to_im7.lo
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/imagickkernel_class.c  -fPIC -DPIC -o .libs/imagickkernel_class.o
    ccache gcc -fopenmp -I/usr/include/ImageMagick -I. -I/svr-setup/imagick-3.4.0RC2 -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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 /svr-setup/imagick-3.4.0RC2/shim_im6_to_im7.c  -fPIC -DPIC -o .libs/shim_im6_to_im7.o
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_getimagematte’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:299: warning: ‘MagickGetImageMatte’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:1236: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:1244: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_recolorimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:1724: warning: ‘MagickRecolorImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:4249: warning: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_mapimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:4675: warning: ‘MagickMapImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:4714: warning: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:4751: warning: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:212)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:4832: warning: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:4913: warning: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:5076: warning: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:260)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:6287: warning: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:6492: warning: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:6829: warning: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_getimageindex’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:7816: warning: ‘MagickGetImageIndex’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_getimagesize’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:7931: warning: ‘MagickGetImageSize’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:8405: warning: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_flattenimages’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:8767: warning: ‘MagickFlattenImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_averageimages’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:9950: warning: ‘MagickAverageImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131)
    /svr-setup/imagick-3.4.0RC2/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
    /svr-setup/imagick-3.4.0RC2/imagick_class.c:10450: warning: ‘MagickMosaicImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135)
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=link ccache gcc -DPHP_ATOM_INC -I/svr-setup/imagick-3.4.0RC2/include -I/svr-setup/imagick-3.4.0RC2/main -I/svr-setup/imagick-3.4.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   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /svr-setup/imagick-3.4.0RC2/modules  imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo imagickkernel_class.lo shim_im6_to_im7.lo -lMagickWand -lMagickCore
    ccache gcc -shared  .libs/imagick_file.o .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o .libs/imagickkernel_class.o .libs/shim_im6_to_im7.o  -lMagickWand -lMagickCore  -Wl,-soname -Wl,imagick.so -o .libs/imagick.so
    creating imagick.la
    (cd .libs && rm -f imagick.la && ln -s ../imagick.la imagick.la)
    /bin/sh /svr-setup/imagick-3.4.0RC2/libtool --mode=install cp ./imagick.la /svr-setup/imagick-3.4.0RC2/modules
    cp ./.libs/imagick.so /svr-setup/imagick-3.4.0RC2/modules/imagick.so
    cp ./.libs/imagick.lai /svr-setup/imagick-3.4.0RC2/modules/imagick.la
    PATH="$PATH:/sbin" ldconfig -n /svr-setup/imagick-3.4.0RC2/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /svr-setup/imagick-3.4.0RC2/modules
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    
    Build complete.
    Don't forget to run 'make test'.
    
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20100525/
    Installing header files:          /usr/local/include/php/
    
    Copying imagick.ini > /etc/centminmod/php.d/imagick.ini
    
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [10-Dec-2015 17:11:42] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    done
    *************************************************
    * imagick PHP installed
    *************************************************
    
     
    Last edited: Dec 11, 2015
  11. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    redis could be same as imagick incomplete tarball in /svr-setup/phpredis*
     
  12. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    I fixed it just by reinstalling it via pecl
    Code:
    pecl install redis
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what version
    Code:
    php --ri redis
     
  14. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    Pretty old, isn't it?
    Code:
    [root@xxxxx ~]# php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.7
    
    Should I try to to get version 3.0, and install it myself, or will that mess up centminmod?
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:21 AM
    1.0.15
    ahhh, ok then. I should have known it was the php client since php-fpm was complaining about it!

    Just FYI, I just upgraded to PHP 5.5 via centminmod (baby steps to PHP 7), and got the redis error again when php-fpm restarted.

    After uninstalling and re-installing redis again via PECL, it's fixed.
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,892
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you should really do redis install via php recompile routine than pecl install as redis.ini is generated in php's config scan directory to be properly managed on PHP upgrade/downgrades.