Problems installing ImageMagick

Hi all,

I need to install imagemagick, in order that I can offer a php function to create JPEG images from uploaded PDFs (if anyone knows a way to do that without ImageMagick, please do enlighten me.)

I ran yum install ImageMagick with completed with no errors

Having found guidance elsewhere on these forums, I then tried to move on to install the PHP plugin with pecl install imagick but this fails as follows:


downloading imagick-3.0.1.tgz ...
Starting to download imagick-3.0.1.tgz (93,920 bytes)
.....................done: 93,920 bytes
13 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Please provide the prefix of Imagemagick installation [autodetect] : autodetect
building in /var/tmp/pear-build-root/imagick-3.0.1
running: /var/tmp/imagick/configure --with-imagick
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
ERROR: `/var/tmp/imagick/configure --with-imagick' failed

Can anyone help?

Cheers,

Adam

Howdy,

It sounds like it’s saying you need a compiled to first be installed before you can build that imagick module. You can install that by running this command:

yum install gcc

After that, try running the imagick installation again, and see if that goes the trick.

-Eric