installation problems

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
mamouneyya

installation problems

Post by mamouneyya »

Hello all,

I want to use Gallery in my site but facing some problems installing ImageMagick. A very old version was installed in cPanel and I wanted to upgrade it. I installed the latest version from source, but looks like the older version is still exists, because when I type:
whereis convert
I get:

Code: Select all

convert: [b]/usr/bin/convert /usr/local/bin/convert[/b] /usr/man/man1/convert.1 /usr/share/man/m
an1/convert.1 /usr/share/man/man1/convert.1.gz
I see here two paths of binary. Am I wrong? I feel that there is a problem as Gallery doesn't work properly with IM. Some problems happen that they don't happen with the version of Gallery/ImageMagick on my local server.

I am really confused! Should I uninstall ImageMagick first?

Any thoughts...?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: installation problems

Post by snibgo »

I suspect your old (system-wide) convert is in /usr/bin, and your newly compiled version is in /usr/local/bin. This is expected behaviour.

"which convert" will tell you which one will be executed.

Also look at the version numbers you get from:

Code: Select all

convert -version
/usr/bin/convert -version
/usr/local/bin/convert -version
You might need to change your PATH variable.
snibgo's IM pages: im.snibgo.com
mamouneyya

Re: installation problems

Post by mamouneyya »

The outputs:

Code: Select all

***@***.com [~]# which convert
/usr/local/bin/convert

***@***.com [~]# convert -version
Version: ImageMagick 6.6.0-0 2010-02-27 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

***@***.com [~]# /usr/bin/convert -version
/usr/bin/convert: error while loading shared libraries: libMagick-5.5.1.so: cannot open s
hared object file: No such file or directory

***@***.com [~]# /usr/local/bin/convert -version
Version: ImageMagick 6.6.0-0 2010-02-27 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
As I can see, the old version in /usr/bin is still there although some of its files are missing. So how can I completely remove it?
About the system $PATH, I've removed /usr/bin from it. /usr/local/bin is already there.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: installation problems

Post by snibgo »

I'm not a *nix guru, but I think completely removing anything from /usr/bin isn't a good idea, because other software might depend on it. Installing/deinstalling is best done with a package manager, unless you are a guru.

And removing /usr/bin from your $PATH is also weird, for much the same reason.

Like I say, I'm not a guru.
snibgo's IM pages: im.snibgo.com
Post Reply