On Feb 14, 2008, at 07:31, Dorothy Hesson 2336 wrote:

On Feb 13, 2008, at 15:23, Ryan Schmidt wrote:

On Feb 12, 2008, at 10:39, Dorothy Hesson 2336 wrote:

I am trying to get ImageMagick running so that I may use the module for Gallery. I've run into some problem with the ImageMagick install.

I am running a Macintosh eMac 10.4.11

ImageMagic is fetched, verified, extracted, etc, but when MacPorts attempts to activate ImageMagick, the following message appears:

Error: Target org.macports.activate returned: Image error: /opt/ local/bin/animate already exists and does not belong to a registered port. Unable to activate port ImageMagick.
Error: Status 1 encountered during processing.

Any ideas for correcting this?

It sounds like you may have previously had ImageMagick installed and then uninstalled it, but when you uninstalled it, you used "sudo port uninstall imagemagick" instead of "sudo port uninstall ImageMagick" (note the case), and so, ImageMagick was not in fact uninstalled properly because of this bug:

http://trac.macosforge.org/projects/macports/ticket/11759

And now you are trying to install ImageMagick again and it's complaining because the items that it wants to install are still there from the last time. The solution is to force the activation:

sudo port -f activate ImageMagick

This will print out lots of messages about all the existing files that it's moving out of the way. You could then delete those files later if you wanted to, or you could leave them; the only harm they'll do is take up a little disk space.

To avoid problems, when using port commands, make sure to specify the port name using the exact same capitalization as shown by "port info".

Hello Ryan -
Yes, you hit it exactly. I read the ticket, and that is exactly what happened.
So, I used
sudo port -f activate ImageMagick
and got the message:

--->  The following versions of ImageMagick are currently installed:
--->    ImageMagick @6.3.6-0_0+darwin_8
--->    ImageMagick @6.3.6-4_0+darwin_8
--->    ImageMagick @6.3.8-6_0+q16
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

Ah, ok, you have 3 versions of ImageMagick installed. In that case, you need to tell it which one you want to activate, e.g. with:

sudo port -f activate ImageMagick @6.3.8-6_0+q16


I tried to find the exact full version name through    port info
and got this message:

Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/myname").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.
(you might also see this message if a pseudo-port such as
outdated or installed expands to no ports).
Error: Unable to open port: Could not find Portfile in /Users/madmin


where /Users/myname is my admin account name. [snip]

Well the full version name of the three installed versions was already printed out above by the failed "sudo port -f activate ImageMagick" command. You wouldn't see it in "port info". The above message is normal, by the way, because you didn't tell it what port you wanted to get info on. :) You probably meant to say:

port info ImageMagick

But that'll just tell you what version of ImageMagick is currently available and what variants you can select. It doesn't tell you which version you have installed or which variants you selected.

_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to