• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Help to install ImageMagick

MGSteve

Well-known member
#7
I've installed it via Centos. I presume you have root access, type in 'whereis convert' into the shell and it'll tell you where it is.

It sometimes installs into /usr/local/bin/ rather than /usr/bin

i.e.

[root@vorlon ~]# whereis convert
convert: /usr/local/bin/convert

if you type 'convert --version' into the shell you should see something like this:

[root@vorlon ~]# convert --version
Version: ImageMagick 6.7.0-8 2011-06-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
 

Claudio

Well-known member
#8
I've installed it via Centos. I presume you have root access, type in 'whereis convert' into the shell and it'll tell you where it is.

It sometimes installs into /usr/local/bin/ rather than /usr/bin

i.e.

[root@vorlon ~]# whereis convert
convert: /usr/local/bin/convert

if you type 'convert --version' into the shell you should see something like this:

[root@vorlon ~]# convert --version
Version: ImageMagick 6.7.0-8 2011-06-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
I get this:
Code:
root@tod [~]# whereis convert
convert: /usr/bin/convert /usr/local/bin/convert /usr/share/man/man1/convert.1.gz /usr/share/man/man1/convert.1
 

ChemicalKicks

Well-known member
#9
Try this then try restarting php/apache

Code:
yum install ImageMagick
yum install ImageMagick-devel
yum install php-pear
pecl install imagick
 

Claudio

Well-known member
#10
Try this.

Just realised you're centos and I'm running Ubuntu however these instructions look legit.

http://www.misdivision.com/blog/how-to-install-imagemagick-imagick-for-php-on-centos-server
Thanks but after execute yum install ImageMagick I get a message that I have already installed ImageMagick
Then I keep following instructions but after execute this step:
pecl install imagick

I get this error:
Code:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
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] :
building in /var/tmp/pear-build-root/imagick-3.0.1
running: /root/tmp/pear/imagick/configure --with-imagick
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed
 

ChemicalKicks

Well-known member
#12
Check the comments of this http://robshouse.net/page/configure-error-pecl-memcache-ubuntu you're exact problem us described! :)

thanks guys, you saved my life.
i was trying to install imagick pecl extension via
pecl install imagick
and faced
configure: error: cannot run C compiled programs.
the following method solved the problem like a charm.
mount -o,remount,rw,exec /var/tmp
And when you're done, set it back:
mount -o,remount,rw,noexec /var/tmp
thank you all .
 

Claudio

Well-known member
#13
Did you do "yum install ImageMagick-devel"
yes:
Code:
root@tod [~]# yum install ImageMagick-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.adams.net
* extras: mirror.raystedman.net
* rpmforge: fr2.rpmfind.net
* update: mirror.raystedman.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package ImageMagick-devel-6.2.8.0-4.el5_5.3.i386 already installed and latest version
Nothing to do
 

Floren

Well-known member
#16
You don't need the devel or pear packages, that is a crazy setup procedure. The clean and simple way to get ImageMagick working for Xenforo:
# yum --enablerepo=axivo install ImageMagick php-pecl-imagick
The RPM is available into Redhat5 repo, for now. We are updating soon the Redhat6 repo, once the current projects clear.
 

RoldanLT

Well-known member
#17

p4guru

Well-known member
#20
You're not using Centmin Mod by any chance ? If you are just run menu option #15 to install it although by default ImagicK should already be installed with latest versions of Centmin Mod.