Welcome to Centmin Mod Community
Become a Member

Nginx Upgrade Nginx to latest version - ImageMagick errors

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Feb 12, 2015.

  1. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi
    I try to upgrade to latest Nginx 1.7.10 and i got this:

    Installing ImageMagick
    ----------------------------------------------------------------------------------
    Error: ImageMagick-last conflicts with ImageMagick-6.5.4.7-7.el6_5.x86_64
    You could try using --skip-broken to work around the problem
    ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
    percona-release-0.1-3.noarch is a duplicate with percona-release-0.0-1.x86_64
    ----------------------------------------------------------------------------------
    Processing package: ImageMagick-devel
    ----------------------------------------------------------------------------------
    Installing ImageMagick-devel
    ----------------------------------------------------------------------------------
    Error: ImageMagick-last conflicts with ImageMagick-6.5.4.7-7.el6_5.x86_64
    You could try using --skip-broken to work around the problem
    ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
    percona-release-0.1-3.noarch is a duplicate with percona-release-0.0-1.x86_64
    ----------------------------------------------------------------------------------
    Processing package: ImageMagick-c++
    ----------------------------------------------------------------------------------
    Installing ImageMagick-c++
    ----------------------------------------------------------------------------------
    Error: ImageMagick-last conflicts with ImageMagick-6.5.4.7-7.el6_5.x86_64
    You could try using --skip-broken to work around the problem
    ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
    percona-release-0.1-3.noarch is a duplicate with percona-release-0.0-1.x86_64
    ----------------------------------------------------------------------------------
    Processing package: ImageMagick-c++-devel

    At the end nginx was upgraded and working but it shouldn't have this error?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    you ran yum check when upgrading nginx prompted to do a yum check ? that's normal if you're using .08 beta or have upgraded imagemagick to 6.8.9/6.9 via remi repo. The yum check tries to install standard imagemagick and that conflicts with remi repo version
     
    • Like Like x 1
  3. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yes i was run yum check first and yes i am using .08 beta so all ok :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 2
  5. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    That's great :)
     
  6. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Also is this a new folder that Centminmod create on upgrade?

    Code:
    /usr/local/nginxbackup/
    As i don't remeber to had this folder there or the script didn't clean it at the end?
     
  7. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    And another one :)

    Is this a typo on nginx.conf ?

    Code:
    directio  4m;
     
  8. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    yes whenever you run centmin.sh menu option 4 to upgrade or downgrade nginx, the script auto backups your nginx configuration to that location via nginxbackup function in inc/nginxbackup.inc
     
  9. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
  10. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok thanks :)
     
  11. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    And the last one:

    Code:
    cp: cannot stat `/var/cache/yum/timedhosts.txt': No such file or directory
    I know maybe it is cosmetic issue but is good to take care of it :)
     
  12. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    just ignore that :)
     
  13. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Now i try to install Phpmyadmin using the latest Centminmod 08 beta with your above edit and i got this error:

    Gracefully shutting down php-fpm . done
    Starting php-fpm [12-Feb-2015 21:50:00] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
     
  14. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    just tested .08 beta and nginx 1.7.10 upgrade with phpmyadmin.sh install and works for me

    you're missing the imagemagick PHP extension so run centmin.sh menu option 15 to reinstall it
     
  15. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I just did a clean install Centminmod 08 beta and then i try to install phpmyadmin......

    I don't know why imagemagick was not there.....

    Thanks
     
  16. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I am getting some errors at phpfpm restart installing it from menu 15:

    Code:
    * Installing imagick PHP Extension
    *************************************************
    /usr/local/src/centminmod-123.08centos7beta01
    cd /svr-setup
    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 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-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 whether to make Imagick respect PHP memory limits... no
    checking for pkg-config... /usr/bin/pkg-config
    checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    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 [13-Feb-2015 15:25:24] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    done
     
  17. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    what version of PHP ?
     
  18. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    PHP_VERSION='5.4.37' # Use this version of PHP

    All default i didn't touch anything...

    Maybe because i test it on Digital Ocean vps that uses minimal Centos install?
     
  19. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    imagemagick PHP extension failed to compile for whatever reason
    Code:
    checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    i just tested imagick PHP extension version 3.1.2 and 3.2.0RC1 and both recompile fine with PHP 5.4.37 via menu option 15 in centmin.sh

    what do you get for output for

    Code:
    yum -q list ImageMagick-last ImageMagick-last-devel --enablerepo=remi
     
    Last edited: Feb 13, 2015
  20. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:56 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    [root@server1 ~]# yum -q list ImageMagick-last ImageMagick-last-devel --enablerepo=remi
    Available Packages
    ImageMagick-last.x86_64 6.9.0.4-1.el6.remi remi
    ImageMagick-last-devel.x86_64 6.9.0.4-1.el6.remi remi