Installing Imagic on Amazon EC Linux

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
pvla
Posts: 2
Joined: 2017-11-25T09:31:53-07:00
Authentication code: 1152

Installing Imagic on Amazon EC Linux

Post by pvla »

Hi Folks,
I am working with AWS EC2 Linux system and have requirement to install ImageMagick 6.9.3-10

sudo yum install libpng-devel libjpeg-devel libtiff-devel libwebp-devel giflib-devel
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -vxf ImageMagick.tar.gz
cd ImageMagick-7.0.3-0/
./configure --without-x

Right after that I get this error:
configure: error: in `/var/www/html/ImageMagick-7.0.7-11':
configure: error: no acceptable C compiler found in $PATH

I am running:
PHP 7.0.25 (cli) (built: Nov 13 2017 22:54:55) ( NTS )

Any help will be appreciated.
Thanks.
Pv.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Installing Imagic on Amazon EC Linux

Post by snibgo »

config.log may contain more information, but it seems you don't have a C compiler, which is unusual for Linux.
snibgo's IM pages: im.snibgo.com
pvla
Posts: 2
Joined: 2017-11-25T09:31:53-07:00
Authentication code: 1152

Re: Installing Imagic on Amazon EC Linux

Post by pvla »

Adding the compile fixed it.

yum install gcc gcc-c++ autoconf automake
Post Reply