I’m trying to install the PHP API for GraphicsMagick using this pecl command:
sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1
during installation I am asked this question:
Please provide the prefix of GraphicsMagick installation [autodetect]
I have no idea how to answer this and if I just press enter for auto detection the install fails.
checking whether to enable the gmagick extension... yes, shared
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: `/tmp/pear/temp/gmagick/configure --with-gmagick' failed
I am using ubuntu server, does anyone know how I can install this program?
Try installing the
libgraphicsmagick1-devpackage (sudo apt-get install libgraphicsmagick1-dev). That should give you GraphicsMagick-config in /usr/bin.When trying to figure out what package is needed for a particular file running
apt-file search <filename>helps. So in this caseapt-file search GraphicsMagick-configwhich on Ubuntu Server 11.04 gives: