Installing ImageMagick 6.4.6-4 on CentOS 5

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rrhode

Installing ImageMagick 6.4.6-4 on CentOS 5

Post by rrhode »

Hi there,

I am trying to instlal ImageMagick 6.4.6-4 on a dedicated CentOS 5 server but not having very much luck. I was wondering if someone might be able to help me.

This is what it says my system is when I do ./configure:

Host system type: i686-redhat-linux-gnu
Build system type: i686-redhat-linux-gnu

I have tried a few methods of installing but so far they all seem to give the same errors. When I type yum install ImageMagick I just get version 6.2.8 and that doesn't seem to be working properly with Gallery 2. I had this all set up on a VPS running Fedora Core 1 but now the site is moving to this new dedicated server.

I have tried to follow these instructions: http://imagemagick.org/Usage/api/#building

But it also gives the following error building. I tried it directly from source and this same error comes up at the end.

Code: Select all

libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./config -fopenmp -O2 -g -pipe -Wall -Wall -W -pthread -MT wand/wand_libMagickWand_la-deprecate.lo -MD -MP -MF wand/.deps/wand_libMagickWand_la-deprecate.Tpo -c wand/deprecate.c  -fPIC -DPIC -o wand/.libs/wand_libMagickWand_la-deprecate.o
wand/deprecate.c: In function 'MagickGetImagePixels':
wand/deprecate.c:709: warning: passing argument 5 of 'MagickExportImagePixels' makes integer from pointer without a cast
wand/deprecate.c:709: error: incompatible type for argument 6 of 'MagickExportImagePixels'
wand/deprecate.c:709: error: incompatible type for argument 7 of 'MagickExportImagePixels'
wand/deprecate.c:709: error: too few arguments to function 'MagickExportImagePixels'
wand/deprecate.c:706: warning: unused parameter 'rows'
make[1]: *** [wand/wand_libMagickWand_la-deprecate.lo] Error 1
make[1]: Leaving directory `/tmp/build-using-a-long-build-path/ImageMagick-6.4.6'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.83476 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.83476 (%build)
Any ideas?

Thanks!

Ryan
rrhode

Re: Installing ImageMagick 6.4.6-4 on CentOS 5

Post by rrhode »

I had a crazy idea and it may just have worked.

I appear to be able to successfully build ImageMagick 6.4.6-3 on my system alright for some reason and it seems to be working on there.

However I don't think that was the problem anyway so back to the drawing board/banging my head against the computer.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Installing ImageMagick 6.4.6-4 on CentOS 5

Post by anthony »

I have a number of times posted my method of installing IM by generating Source RPMs appropriate for your system, then building the RPM's from that. This way you generate and install packages that fit with your system, allowing better management of the software.

Do a forum search.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
rrhode

Re: Installing ImageMagick 6.4.6-4 on CentOS 5

Post by rrhode »

Oh I have seen your posts about this. And they are wonderful posts indeed. In fact that is exactly what I followed to make this work eventually. So thank you =)

However it didn't work for some reason with 6.4.6-4, it just spit out errors. It is ok though because I tried 6.4.6-3 and it went through without any errors at all. With perfect instructions like yours to follow I made it ok and I am very greatful you take the time to post them for people =)
Post Reply