New installation complete but Old version still the default

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
bobkohm

New installation complete but Old version still the default

Post by bobkohm »

Have been running ImageMagick-6.2.8 and just download the source for ImageMagick-6.5.3-10
Ran through the config, make, install and check process and everything came up fine.
Convert command is still accessing 6.2.8

The origingal version was installed using YUM. A binary distribution of 6.5.3-10 is not available for my CentOS system so I tried doing it from scratch. I have obviously missed something basic. Any help would be appreciated. :(
rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Re: New installation complete but Old version still the default

Post by rmagick »

If you installed the new version using the default PREFIX, then it's in /usr/local/bin. I don't know where yum installs things. Probably /usr. Anyway, find out the directory in which the old ImageMagick is installed, and then make sure that /usr/local/bin precedes that directory in your PATH. If you don't know how to do this check out some doc for your shell. If you're using bash (you probably are) then here's a good start: http://www.comptechdoc.org/os/linux/man ... gpath.html.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: New installation complete but Old version still the default

Post by anthony »

If you are using yum then you are better off generating a RPM package for installation to replace the system one.

See the Build notes in
http://www.imagemagick.org/Usage/api/#building
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
bobkohm

Re: New installation complete but Old version still the default

Post by bobkohm »

The convert command is now finding the proper installation but am having a new issue.

convert fig5.jpg fig5.png
convert: no decode delegate for this image format `fig5.jpg' @ constitute.c/ReadImage/503.
convert: missing an image filename `fig5.png' @ convert.c/ConvertImageCommand/2772.

I had to build from the source since my server has a Parallels control panel and running CentOS 64 bit OS. The linux kernal is Linux 2.6.18-128.1.6.el5

I could not find an RPM for this version of linux. Normally I can live with the older versions of software but I need some of the newer image processing option.

Thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: New installation complete but Old version still the default

Post by fmw42 »

you need to install all the image type delegates that you want to use, jpg, png, tif etc

see http://www.imagemagick.org/download/delegates/

but you may want to Google for more current versions

you can type

convert -list configure

and look at the line starting with DELEGATES to see what IM knows is installed.

I Installed quite a few manually on my Mac and my configuration shows:

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib


But you only need to install those you want to use frequently. For PDF you need ghostscript (gs) and possibly freetype. I am not too sure. But you likely want jpeg, png, tiff at least.

You may have to re-install IM afterwards. I am not sure. Try installing the delegates and then issue

convert -list configure

If they don't show up, then re-install IM.

I am not a unix expert and will defer to the IM folks for expert instructions.
bobkohm

Re: New installation complete but Old version still the default

Post by bobkohm »

Sounds like exactly what I need to do. Thanks
Post Reply