OVH Community, votre nouvel espace communautaire.

[HOW-TO] imagick sur release 3


Daniweb
05/05/2016, 02h52
I get an error in dependencies with yum while using:

/usr/bin/yum install php-pecl-imagick.x86_64
Which repo should i use ?

Thanks

sloboman
10/12/2014, 19h00
Je pense que le souci vient de la dernière ligne de ton log :
Is this ok [y/N]: Exiting on user Command
as tu bien validé avec y puis entrée ?
car Exiting on user Command semble indiquer qu'il n'a pas installé

il semble que le log que tu donnes n'indique que la recherche et la récap des dépendances, sans indication que c'est bien installé.

fais un retour si tu peux

oli004
09/12/2014, 23h45
up
quelqu'un a-t-il une idée pour résoudre mon problème ?

oli004
07/12/2014, 15h10
Désolé mais de mon coté ce How-To ne fonctionne pas sur ma R3.
Pas de imagick.so généré. il me manque peut-etre des étapes (configuration ou compilation)

voici ce qui retourne lors de mon installation :
après un :
Code:
/usr/bin/yum install php-pecl-imagick.x86_64
j'ai :
Code:
> /usr/bin/yum install php-pecl-imagick.x86_64
Loaded plugins: fastestmirror, priorities
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.ovh.net
 * epel: ftp.uni-koeln.de
 * extras: centos.mirrors.ovh.net
 * rpmforge: mirror.nl.leaseweb.net
 * updates: centos.mirrors.ovh.net
1568 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-imagick.x86_64 0:2.2.2-4.el6 will be installed
--> Processing Dependency: libMagickWand.so.2()(64bit) for package: php-pecl-imagick-2.2.2-4.el6.x86_64
--> Processing Dependency: libMagickCore.so.2()(64bit) for package: php-pecl-imagick-2.2.2-4.el6.x86_64
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.5.4.7-7.el6_5 will be installed
--> Processing Dependency: libwmflite-0.2.so.7()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libtiff.so.3()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: librsvg-2.so.2()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: liblcms.so.1()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libjasper.so.1()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libgs.so.8()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libXt.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libSM.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libImath.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libIlmThread.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libIlmImf.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libIex.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Processing Dependency: libHalf.so.6()(64bit) for package: ImageMagick-6.5.4.7-7.el6_5.x86_64
--> Running transaction check
---> Package OpenEXR-libs.x86_64 0:1.6.1-8.1.el6 will be installed
---> Package gdk-pixbuf2.x86_64 0:2.24.1-5.el6 will be installed
---> Package ghostscript.x86_64 0:8.70-19.el6 will be installed
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript-8.70-19.el6.x86_64
--> Processing Dependency: ghostscript-fonts for package: ghostscript-8.70-19.el6.x86_64
--> Processing Dependency: libcupsimage.so.2()(64bit) for package: ghostscript-8.70-19.el6.x86_64
--> Processing Dependency: libcups.so.2()(64bit) for package: ghostscript-8.70-19.el6.x86_64
---> Package ilmbase.x86_64 0:1.0.1-6.1.el6 will be installed
---> Package jasper-libs.x86_64 0:1.900.1-15.el6_1.1 will be installed
---> Package lcms-libs.x86_64 0:1.19-1.el6 will be installed
---> Package libICE.x86_64 0:1.0.6-1.el6 will be installed
---> Package libSM.x86_64 0:1.2.1-2.el6 will be installed
---> Package libXext.x86_64 0:1.3.2-2.1.el6 will be installed
---> Package libXt.x86_64 0:1.1.4-6.1.el6 will be installed
---> Package librsvg2.x86_64 0:2.26.0-14.el6 will be installed
--> Processing Dependency: libgsf >= 1.6.0 for package: librsvg2-2.26.0-14.el6.x86_64
--> Processing Dependency: gtk2 >= 2.9.0 for package: librsvg2-2.26.0-14.el6.x86_64
--> Processing Dependency: libgtk-x11-2.0.so.0()(64bit) for package: librsvg2-2.26.0-14.el6.x86_64
--> Processing Dependency: libgsf-1.so.114()(64bit) for package: librsvg2-2.26.0-14.el6.x86_64
--> Processing Dependency: libgdk-x11-2.0.so.0()(64bit) for package: librsvg2-2.26.0-14.el6.x86_64
--> Processing Dependency: libcroco-0.6.so.3()(64bit) for package: librsvg2-2.26.0-14.el6.x86_64
--> Processing Dependency: libatk-1.0.so.0()(64bit) for package: librsvg2-2.26.0-14.el6.x86_64
---> Package libtiff.x86_64 0:3.9.4-10.el6_5 will be installed
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package libwmf-lite.x86_64 0:0.2.8.4-23.el6 will be installed
--> Running transaction check
---> Package atk.x86_64 0:1.30.0-1.el6 will be installed
---> Package cups-libs.x86_64 1:1.4.2-67.el6 will be installed
--> Processing Dependency: libavahi-common.so.3()(64bit) for package: 1:cups-libs-1.4.2-67.el6.x86_64
--> Processing Dependency: libavahi-client.so.3()(64bit) for package: 1:cups-libs-1.4.2-67.el6.x86_64
---> Package ghostscript-fonts.noarch 0:5.50-23.2.el6 will be installed
--> Processing Dependency: xorg-x11-font-utils for package: ghostscript-fonts-5.50-23.2.el6.noarch
---> Package gtk2.x86_64 0:2.24.23-6.el6 will be installed
--> Processing Dependency: libXrandr >= 1.2.99.4-2 for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
--> Processing Dependency: libXcomposite.so.1()(64bit) for package: gtk2-2.24.23-6.el6.x86_64
---> Package libcroco.x86_64 0:0.6.2-5.el6 will be installed
---> Package libgsf.x86_64 0:1.14.15-5.el6 will be installed
--> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64
--> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64
---> Package urw-fonts.noarch 0:2.4-10.el6 will be installed
--> Running transaction check
---> Package GConf2.x86_64 0:2.28.0-6.el6 will be installed
--> Processing Dependency: sgml-common for package: GConf2-2.28.0-6.el6.x86_64
--> Processing Dependency: libpolkit-gobject-1.so.0()(64bit) for package: GConf2-2.28.0-6.el6.x86_64
--> Processing Dependency: libORBit-2.so.0()(64bit) for package: GConf2-2.28.0-6.el6.x86_64
---> Package avahi-libs.x86_64 0:0.6.25-15.el6 will be installed
---> Package hicolor-icon-theme.noarch 0:0.11-1.1.el6 will be installed
---> Package libXcomposite.x86_64 0:0.4.3-4.el6 will be installed
---> Package libXcursor.x86_64 0:1.1.14-2.1.el6 will be installed
---> Package libXdamage.x86_64 0:1.1.3-4.el6 will be installed
---> Package libXfixes.x86_64 0:5.0.1-2.1.el6 will be installed
---> Package libXi.x86_64 0:1.7.2-2.2.el6 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el6 will be installed
---> Package libXrandr.x86_64 0:1.4.1-2.1.el6 will be installed
---> Package xorg-x11-font-utils.x86_64 1:7.2-11.el6 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-11.el6.x86_64
--> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.2-11.el6.x86_64
--> Running transaction check
---> Package ORBit2.x86_64 0:2.14.17-5.el6 will be installed
--> Processing Dependency: libIDL-2.so.0()(64bit) for package: ORBit2-2.14.17-5.el6.x86_64
---> Package libXfont.x86_64 0:1.4.5-4.el6_6 will be installed
---> Package libfontenc.x86_64 0:1.0.5-2.el6 will be installed
---> Package polkit.x86_64 0:0.96-7.el6 will be installed
--> Processing Dependency: ConsoleKit for package: polkit-0.96-7.el6.x86_64
--> Processing Dependency: libeggdbus-1.so.0()(64bit) for package: polkit-0.96-7.el6.x86_64
---> Package sgml-common.noarch 0:0.6.3-33.el6 will be installed
--> Running transaction check
---> Package ConsoleKit.x86_64 0:0.4.1-3.el6 will be installed
--> Processing Dependency: libck-connector.so.0()(64bit) for package: ConsoleKit-0.4.1-3.el6.x86_64
---> Package eggdbus.x86_64 0:0.6-3.el6 will be installed
---> Package libIDL.x86_64 0:0.8.13-2.1.el6 will be installed
--> Running transaction check
---> Package ConsoleKit-libs.x86_64 0:0.4.1-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch       Version                   Repository   Size
================================================================================
Installing:
 php-pecl-imagick        x86_64     2.2.2-4.el6               epel         85 k
Installing for dependencies:
 ConsoleKit              x86_64     0.4.1-3.el6               base         82 k
 ConsoleKit-libs         x86_64     0.4.1-3.el6               base         17 k
 GConf2                  x86_64     2.28.0-6.el6              base        964 k
 ImageMagick             x86_64     6.5.4.7-7.el6_5           base        1.7 M
 ORBit2                  x86_64     2.14.17-5.el6             base        168 k
 OpenEXR-libs            x86_64     1.6.1-8.1.el6             base        197 k
 atk                     x86_64     1.30.0-1.el6              base        195 k
 avahi-libs              x86_64     0.6.25-15.el6             base         55 k
 cups-libs               x86_64     1:1.4.2-67.el6            base        320 k
 eggdbus                 x86_64     0.6-3.el6                 base         91 k
 gdk-pixbuf2             x86_64     2.24.1-5.el6              base        501 k
 ghostscript             x86_64     8.70-19.el6               base        4.4 M
 ghostscript-fonts       noarch     5.50-23.2.el6             base        590 k
 gtk2                    x86_64     2.24.23-6.el6             base        3.2 M
 hicolor-icon-theme      noarch     0.11-1.1.el6              base         40 k
 ilmbase                 x86_64     1.0.1-6.1.el6             base         72 k
 jasper-libs             x86_64     1.900.1-15.el6_1.1        base        136 k
 lcms-libs               x86_64     1.19-1.el6                base        100 k
 libICE                  x86_64     1.0.6-1.el6               base         53 k
 libIDL                  x86_64     0.8.13-2.1.el6            base         83 k
 libSM                   x86_64     1.2.1-2.el6               base         37 k
 libXcomposite           x86_64     0.4.3-4.el6               base         20 k
 libXcursor              x86_64     1.1.14-2.1.el6            base         28 k
 libXdamage              x86_64     1.1.3-4.el6               base         18 k
 libXext                 x86_64     1.3.2-2.1.el6             base         35 k
 libXfixes               x86_64     5.0.1-2.1.el6             base         17 k
 libXfont                x86_64     1.4.5-4.el6_6             updates     137 k
 libXi                   x86_64     1.7.2-2.2.el6             base         37 k
 libXinerama             x86_64     1.1.3-2.1.el6             base         13 k
 libXrandr               x86_64     1.4.1-2.1.el6             base         23 k
 libXt                   x86_64     1.1.4-6.1.el6             base        165 k
 libcroco                x86_64     0.6.2-5.el6               base        100 k
 libfontenc              x86_64     1.0.5-2.el6               base         24 k
 libgsf                  x86_64     1.14.15-5.el6             base        116 k
 librsvg2                x86_64     2.26.0-14.el6             base        140 k
 libtiff                 x86_64     3.9.4-10.el6_5            base        343 k
 libtool-ltdl            x86_64     2.2.6-15.5.el6            base         44 k
 libwmf-lite             x86_64     0.2.8.4-23.el6            base         51 k
 polkit                  x86_64     0.96-7.el6                base        161 k
 sgml-common             noarch     0.6.3-33.el6              base         43 k
 urw-fonts               noarch     2.4-10.el6                base        3.1 M
 xorg-x11-font-utils     x86_64     1:7.2-11.el6              base         75 k

Transaction Summary
================================================================================
Install      43 Package(s)

Total download size: 18 M
Installed size: 61 M
Is this ok [y/N]: Exiting on user Command
j'ajoute ensuite à /etc/php.ini les valeurs
Code:
extension_dir = "/usr/lib64/php/modules"
extension=imagick.so
Puis je redemarre httpd mais pas de trace du imagick.so dans le repertoire des modules, pas de trace non plus en verifiant sur un php_info

sloboman
07/11/2014, 23h33
Imagick est une classe PHP permettant la manipulation d'images un peu comme GD mais qui gère beaucoup plus de formats (le pdf par exemple ou les fichiers CMJN venant de l'imprimerie)
Imagick est l'adaptation PHP du soft imagemagick, aucune obligation d'installer l'un pour que l'autre fonctionne.
Je cherchais à installer imagick sur une release 3 toute fraiche, j'ai commencé par chercher à installer phpize, puis j'ai fait un :

Code:
/usr/bin/yum search imagemagick
et dans la liste j'ai trouvé :

php-pecl-imagick.x86_64

Oh joie !

un :
Code:
/usr/bin/yum install php-pecl-imagick.x86_64
plus tard :

Installé:
php-pecl-imagick.x86_64 0:2.2.2-4.el6

Après on édite php.ini (j'utilise mon vieux vim de papy)
Code:
vi /etc/php.ini
on ajoute :
Code:
extension_dir = "/usr/lib64/php/modules"
extension=imagick.so
enregistrez

Code:
service httpd restart
et voilà !