note 83715 modified in imagick.setup by danbrown

From: Date: Thu, 26 Jun 2008 16:27:22 +0000
Subject: note 83715 modified in imagick.setup by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140843@lists.php.net to get a copy of this message
To install the latest Imagick from PECL on an Ubuntu variant system, assuming your already have PHP5 and Apache2 installed, do the following. You need your root password, have sudo privileges and be able to run commands from a shell (e.g via Konsole) 1. $ sudo aptitude install php-pear imagemagick php5-dev libmagick9-dev 2. do *not* install php5-imagick as you will install a later version from PECL 3. libmagick9-dev may install a whole load of dependencies. This package provides the Wand-config program and avoids the error on pecl install "configure: error: not found. Please provide a path to MagickWand-config or Wand-config program." 4. $ sudo pecl install Imagick 5. Hit enter to autodetect the "Imagemagick installation" prefix You should see some compilation messages, noting any errors that stop the Imagick build. When completed successfully, the following console message should appear Build process completed successfully Installing '/usr/lib/php5/20060613+lfs/imagick.so' install ok: channel://pecl.php.net/imagick-2.2.0b2 Now for loading it when the web server starts/restarts 6. $ sudo kate /etc/php5/apache2/conf.d/imagick.ini 7. enter extension=imagick.so and save 8. $ sudo apache2ctl configtest 9. $ sudo apache2ctl restart Notes: * You can use any apt client e.g apt-get to install packages * If you want beta Imagick then: $ sudo pear config-set preferred_state beta * You can now upgrade Imagick as new versions are made available in PECL the same way PEAR updates are handled. Hope this helps some of you... --was-- To install the latest Imagick from PECL on an Ubuntu variant system, assuming your already have PHP5 and Apache2 installed, do the following. You need your root password, have sudo privileges and be able to run commands from a shell (e.g via Konsole) 1. $ sudo aptitude install php-pear imagemagick php5-dev libmagick-9dev 2. do *not* install php5-imagick as you will install a later version from PECL 3. libmagick-9dev may install a whole load of dependencies. This package provides the Wand-config program and avoids the error on pecl install "configure: error: not found. Please provide a path to MagickWand-config or Wand-config program." 4. $ sudo pecl install Imagick 5. Hit enter to autodetect the "Imagemagick installation" prefix You should see some compilation messages, noting any errors that stop the Imagick build. When completed successfully, the following console message should appear Build process completed successfully Installing '/usr/lib/php5/20060613+lfs/imagick.so' install ok: channel://pecl.php.net/imagick-2.2.0b2 Now for loading it when the web server starts/restarts 6. $ sudo kate /etc/php5/apache2/conf.d/imagick.ini 7. enter extension=imagick.so and save 8. $ sudo apache2ctl configtest 9. $ sudo apache2ctl restart Notes: * You can use any apt client e.g apt-get to install packages * If you want beta Imagick then: $ sudo pear config-set preferred_state beta * You can now upgrade Imagick as new versions are made available in PECL the same way PEAR updates are handled. Hope this helps some of you... http://php.net/manual/en/imagick.setup.php

« previous php.notes (#140843) next »