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?
To do, simply run the following ‘ pecl ‘ command. It will install ImageMagick and imagick PHP extension module ‘imagick.so ‘ under /usr/lib/php/modules directory. If you are using a 64-bit system, the module directory path would be /usr/lib64/php/modules. Note: It will ask you to provide Imagemagick installation prefix,...
GraphicsMagick may be retrieved via the following command: hg clone http://hg.code.sf.net/p/graphicsmagick/code/ GM. Mercurial provides a complete stand-alone repository which contains the full history of the GraphicsMagick project.
IMPORTANT: ImageMagick is not available in CentOS/RHEL 8, and it has been replaced with GraphicsMagick instead, which is a fork of ImageMagick. To install GraphicsMagick on CentOS/RHEL 8, run the following command. # dnf info GraphicsMagick # dnf install GraphicsMagick GraphicsMagick-devel GraphicsMagick-perl Install GraphicsMagick in CentOS 8
GraphicsMagick requires 'ralcgm' from http://www.agocg.ac.uk/train/cgm/ralcgm.htm to read the Computer Graphics Metafile (CGM) image format. You also need Ghostscript and Ghostscript Fonts (see below).
Try installing the libgraphicsmagick1-dev
package (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 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With