Install Imagemagick / Imagick for PHP on Ubuntu
php, ubuntu January 15th, 2008Want to know how to install Imagemagick on ubuntu ?
No problem if you want to install imagemagick on your pc, ubuntu makes this very easy for you with only a few simple commands..
- Make sure u have pear install ( ’sudo apt-get install php-pear’ )
- Then run: sudo apt-get install imagemagick
- And then: sudo pecl install imagick
**if you get an error which looks like this: configure: error: Cannot locate configuration program Wand-configthen no problem, simply run the following command: sudo apt-get install libmagick9-dev
Now re-run sudo pecl install imagick
All sorted ? Good, now simply add extension=imagick.so to your php.ini and your done
Incidently, if you want to get serious about PHP and Imagemagick, i highly recommend you check out mikko’s imagemagick blog which details lots of examples of using imagemagick and pushing it to the limit. cool stuff.

January 18th, 2008 at 5:42 am
Many thanks, I just set-up a Ubuntu headless server and your guide was very useful for enabling imagemagick. Just to say I ran into a problem on the way and thought I would put it here in case anyone else runs into it as well.
If you get the error:
sh: phpize: command not found
ERROR: `phpize’ failed
Run (as root):
apt-get install php5-dev
Or for PHP4:
apt-get install php4-dev
February 2nd, 2008 at 9:09 am
Thanks for the help Tom and Dan
February 1st, 2009 at 6:12 am
Thanks for your help with this tutorial. It helped me setup imagick perfectly. I ran into every error discussed on this page, and resolved them as suggested. Bravo!
Regards,
Wyatt
July 25th, 2009 at 1:34 am
Thanks a lot for the help guys - I did notice however at the time I´m writing this that sudo apt-get install libmagick9-dev threw an error at me - I used the Synaptic Package Manager to install libmagickwand-dev and that took care of the issue and I was able to go ahead with sudo pecl install imagick.
Hope that helps someone.
August 2nd, 2009 at 6:22 am
hello, mister theatons! im having issues after doing: “sudo pecl install imagick”, gave me this error:
http://pastebin.com/m74ca08ae
make: *** [imagick_helpers.lo] Error 1
ERROR: `make’ failed
i have installed php5-dev package.
is there something in the code thats wrong? or some dependency that is not set up right? i’m really the noob of all noobs. help
thank you
travis
August 20th, 2009 at 1:08 am
I’ve got error:
No release available for package “pecl.php.net/magick”
Cannot initialize ‘channel://pecl.php.net/magick’, invalid or missing package file
Package “channel://pecl.php.net/magick” is not valid
install failed