PDA

View Full Version : ImageMagick update on Debian Etch


stephanl
26th July 2009, 13:14
Hi,

I have one problem by using ImageMagick with Imagick, if I try to call

Imagick::roundCorners()

the following error occures:

Fatal error: Call to undefined method Imagick::roundCorners() in

I found out that IM in version >=6.2.9 is required.

But there is no package avaluable with a higher version than I use for Debian Etch. So I decided to install IM in a higher version by myself and have done this:

wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xfvz ImageMagick.tar.gz
cd ImageMagick-6.5.4-5
./configure --prefix=/usr/local/ImageMagick-6.5.4-5 --with-quantum-depth=8 --with-gs-font-dir=/usr/share/fonts --with-windows-font-dir=/usr/share/fonts/windows --with-imagick
make
make install

Now everything is installed in

/usr/local/ImageMagick-6.5.4-5/bin/convert

But if I type

which convert

the path to the old (apt-get installed) ImageMagick-Version is given. How can I change this and do I have to update Imagick, too?

Thanks a lot in advance
Stephan

PS: If I call the roundCorners command now, the same error occures (of course).

falko
27th July 2009, 14:39
You can add this to your ~/.bashrc file:
PATH="/usr/local/ImageMagick-6.5.4-5/bin:$PATH"

stephanl
28th July 2009, 00:48
Hi!

thank you for your answer! But that doesn't solve the problem.

For everyone with the same issue, I worked a few hours and here is a solution:

- unistall php5-imagick and imagemagick via apt-get remove.
- Install imagemagick like I did (commands in my first post)
- uninstall the pecl package for imagemagick and install the new version, then install php5-imagick via apt-get install (or install php5-imagick at first? not sure in which order)

That was how I figured it out. Hope it helps.

Kind regards
Stephan

Kev King
30th July 2009, 01:21
Was having problems with installing 6.5.4-6, and I read this post, but was not confident of the commands that stephanl, quoted,not being up on cmd line stuff and what it all meant. Have had more down time than up thru bad typying :(

Anyway I found a good source of info at the following, via the imagmagick forum:

http://www.digitalsanctum.com/2009/03/18/installing-imagemagick-from-source-on-ubuntu-804/

I am on Debian5.02(lenny) and the install worked a dream. I think the errors I was getting were because I didnt remove the older version first but hey all working now.

Just thought i would share this, just in case someone else was having the same problems, and it might save someone alot of arsing about.