27.Mayıs.2019 | #1 |
Çevrimiçi
~ Www.ircforumda.net ~ |
Sunucu Üzerinde imagick Kurulumu
ImageMagick bir resim işleme kütüphanesidir ve php ile bu sayede resimleri yeniden boyutlandırma, kalite, watermark vb. işlemleri kolayca yapabilirsiniz. Gelelim Centos6 üzerinde Imagic yükleme işlemine.
2017 01 03 15 03 47 - Sunucu Üzerinde imagick Kurulumu SSH üzerinden aşağıda yer alan komutları yükleyebilirsiniz. yum install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl pecl install imagick 1 2 3 yum install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl pecl install imagick ImageMagick, görüntü manupülasyonuna izin veren en çok kullanılan eklentilerden biridir. GD'yi kullanmaya müsaitse öncelikle doğrudan easyapache'den derleyip kullanabilirsiniz. Öncelikle yüklü olup olmadığını kontrol edelim. /scripts/checkimagemagick 1 /scripts/checkimagemagick Yükleme adımları: /scripts/installimagemagick 1 /scripts/installimagemagick WHM üzerinde Imagick yükleme işlemi WHM -> Software -> Module Installers -> PHP Pecl (manage). gelen kutucuğa "Install a PHP Pecl" enter "imagick" and click "Install Now" işlemleri ile WHM panel üzerinden yükleme sağlayabilirsiniz. Ardından apache'yi yeniden başlatmalısınız. ImagicUninstall: ImageMagick kaldırma işlemi içim: /scripts/cleanimagemagick 1 /scripts/cleanimagemagick Imagick: WHM -> Software -> Module Installers -> PHP Pecl (manage). Uninstall'a basarak kaldırma işlemi sağlayabilirsiniz. Sunucu çıktısı ise şöyle; downloading imagick-3.4.3RC1.tgz ... Starting to download imagick-3.4.3RC1.tgz (245,140 bytes) .................................................. .done: 245,140 bytes 19 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-roots8siWo/imagick-3.4.3RC1 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-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... 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-20100525 Tidying /usr/local/lib/php.ini... No changes Tidying /usr/local/cpanel/3rdparty/php/56/etc/php.ini... No changes linux hosting downloading imagick-3.4.3RC1.tgz ... Starting to download imagick-3.4.3RC1.tgz (245,140 bytes) .................................................. .done: 245,140 bytes 19 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-roots8siWo/imagick-3.4.3RC1 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-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... 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' linux web hosting The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20100525 Tidying /usr/local/lib/php.ini... No changes Tidying /usr/local/cpanel/3rdparty/php/56/etc/php.ini... No changes |
|
|