āļ§āļīāļ˜āļĩāļ•āļīāļ”āļ•āļąāđ‰āļ‡ ImageMagick āļŠāļģāļŦāļĢāļąāļš Linux ( āđ‚āļ”āļĒāđƒāļŠāđ‰āļ§āļīāļ˜āļĩ yum )

  • yum install ImageMagick
  • yum install ImageMagick-devel
  • yum install php-pear
  • pecl install imagick
āļ—āļ”āļŠāļ­āļš
  • convert --help

āļ§āļīāļ˜āļĩāļ•āļīāļ”āļ•āļąāđ‰āļ‡ ImageMagick āļŠāļģāļŦāļĢāļąāļš Linux (āļ§āļīāļ˜āļĩ Complie Source)

*āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ€āļ§āļ­āļĢāđŒāļŠāļąāđˆāļ™āļĨāđˆāļēāļŠāļļāļ”āļˆāļēāļ http://pecl.php.net/package/imagick
  • cd /usr/src
  • wget http://pecl.php.net/get/imagick-2.3.0.tgz
  • tar zxvf imagick-2.3.0.tgz
  • cd imagick-2.3.0
  • phpize
  • ./configure --with-imagick=/usr/local
  • make
  • make install
āļ—āļ”āļŠāļ­āļš
  • convert --help

 
āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļ•āļīāļ”āļ•āļąāđ‰āļ‡ āđ€āļžāļ·āđˆāļ­āđƒāļŠāđ‰āļ‡āļēāļ™āļāļąāļš PHP āđƒāļŦāđ‰āđ€āļĨāļ·āļ­āļāļ§āļīāļ˜āļĩāļ­āļąāļ™āđƒāļ”āļ­āļąāļ™āļŦāļ™āļķāđˆāļ‡


āļ§āļīāļ˜āļĩāļ•āļīāļ”āļ•āļąāđ‰āļ‡ ImageMagick āđƒāļŦāđ‰āļāļąāļš PHP āļ”āđ‰āļ§āļĒāļ•āļ™āđ€āļ­āļ‡

  • php -i | grep php.ini (āļ•āļĢāļ§āļˆāļŠāļ­āļš path āļ‚āļ­āļ‡ php.ini)
Loaded Configuration File => /usr/local/lib/php.ini
  • find / -name imagick.so (āļ•āļĢāļ§āļˆāļŠāļ­āļš path āļ‚āļ­āļ‡ imagick.so)
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
  • echo 'extension="/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so"'  >> /usr/local/lib/php.ini
  • service httpd restart
āļ•āļĢāļ§āļˆāļŠāļ­āļšāļœāļĨāļāļēāļĢāļ•āļīāļ”āļ•āļąāđ‰āļ‡
  • php -m | grep imagick


āļ§āļīāļ˜āļĩāļ•āļīāļ”āļ•āļąāđ‰āļ‡ ImageMagick āđƒāļŦāđ‰āļāļąāļš PHP āļ”āđ‰āļ§āļĒ Directadmin

  • vi /usr/local/directadmin/custombuild/configure/ap2/configure.php5
  • āđ€āļžāļīāđˆāļĄ
--with-imagick=/usr/local
  • cd /usr/local/directadmin/custombuild
  • ./build php n
āļ•āļĢāļ§āļˆāļŠāļ­āļšāļœāļĨāļāļēāļĢāļ•āļīāļ”āļ•āļąāđ‰āļ‡
  • php -i | grep imagick (āļ–āđ‰āļēāđāļŠāļ”āļ‡ imagick āđāļŠāļ”āļ‡āļ§āđˆāļēāļ•āļīāļ”āļ•āļąāđ‰āļ‡āļŠāļģāđ€āļĢāđ‡āļˆ)

ERROR āđāļĨāļ°āļ§āļīāļ˜āļĩāļāļēāļĢāđāļāđ‰āđ„āļ‚āļ•āđˆāļēāļ‡āđ†
  • convert: error while loading shared libraries: libMagickCore.so.1: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=/usr/local/lib
  • configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
yum install ImageMagick-devel
  • php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: undefined symbol: MagickWandGenesis
āļ•āļīāļ”āļ•āļąāđ‰āļ‡āđ€āļ§āļ­āļĢāđŒāļŠāļąāđˆāļ™ āļ—āļĩāđˆāļ•āđˆāļģāļĨāļ‡
  • checking ImageMagick MagickWand API configuration program... found in /usr/bin/Wand-config Package Wand was not found in the pkg-config search path.
    Perhaps you should add the directory containing `Wand.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'Wand' found
yum install ImageMagick-devel
 
  • PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - libWand.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
yum install ImageMagick

āđ„āļ­āđ€āļĢāļĩāļĒāļĨāļĨāļĩāđˆāđ‚āļŪāļŠ
āļŠāļģāļŦāļĢāļąāļšāļāļēāļĢāļŠāļ™āļąāļšāļŠāļ™āļļāļ™ āđāļĨāļ°āļŠāđˆāļ§āļĒāđ€āļŦāļĨāļ·āļ­
http://www.ireallyhost.com/support
āļ‚āđ‰āļ­āļāļģāļŦāļ™āļ”āđƒāļ™āļāļēāļĢāđ€āļœāļĒāđāļžāļĢāđˆāļšāļ—āļ„āļ§āļēāļĄ āļ‚āđˆāļēāļ§āļŠāļēāļĢ
** āļšāļ—āļ„āļ§āļēāļĄāļ™āļĩāđ‰āļĄāļĩāļĨāļīāļ‚āļŠāļīāļ—āļ˜āļīāđŒ āđ„āļĄāđˆāļ­āļ™āļļāļāļēāļ•āļīāđƒāļŦāđ‰āļ„āļąāļ”āļĨāļ­āļ āļ—āļģāļ‹āđ‰āļģ āļ”āļąāļ”āđāļ›āļĨāļ‡āļāđˆāļ­āļ™āđ„āļ”āđ‰āļĢāļąāļšāļ­āļ™āļļāļāļēāļ• **
āđ‚āļ›āļĢāļ”āļĢāļ°āļšāļļāđāļŦāļĨāđˆāļ‡āļ—āļĩāđˆāļĄāļē āļšāļĢāļīāļĐāļąāļ— āđ€āļ­āđ‡āļāļ‹āđŒāļ•āļĢāđ‰āļē āļ„āļ­āļĢāđŒāļ›āļ­āđ€āļĢāļŠāļąāđˆāļ™ āļˆāļģāļāļąāļ” / https://www.ireallyhost.com
āļ—āļąāđˆāļ§āđ„āļ›