Provide GraphicsMagick Installation Prefix [autodetect]

I am trying to install the PHP API for GraphicsMagick with this pecl command:

sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1 

during installation, they ask me this question:

 Please provide the prefix of GraphicsMagick installation [autodetect] 

I have no idea how to answer this, and if I just press the enter key for automatic detection, the installation 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 an ubuntu server, does anyone know how I can install this program?

+7
source share
2 answers

Try installing the libgraphicsmagick1-dev package (sudo apt-get install libgraphicsmagick1-dev). This should give you GraphicsMagick-config in / usr / bin.

When trying to figure out which package is needed for a particular file running under apt-file search <filename> . So, in this case, apt-file search GraphicsMagick-config , which on Ubuntu Server 11.04 gives:

 % apt-file search GraphicsMagick-config libgraphicsmagick1-dev: /usr/bin/GraphicsMagick-config libgraphicsmagick1-dev: /usr/share/man/man1/GraphicsMagick-config.1.gz 
+10
source

On OS X, just run

brew install GraphicsMagick

and then run the pecl installation command

0
source

All Articles