Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Please provide the prefix of GraphicsMagick installation [autodetect]

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?

like image 756
TKpop Avatar asked Dec 24 '11 19:12

TKpop


People also ask

How to install ImageMagick and IMagick PHP extension module?

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,...

Where can I find the source code for GraphicsMagick?

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.

How do I install ImageMagick on CentOS 8?

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

What do I need to install GraphicsMagick to read CGM images?

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).


1 Answers

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
like image 94
Rob Wouters Avatar answered Oct 05 '22 06:10

Rob Wouters