Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31433 closed defect (invalid)

System ImageMagick `convert` predominates over MacPorts `convert`

Reported by: sam.kuper@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: sam.kuper@…
Port:

Description

Here is an abbreviated transcript of my experience, from before to after installing ImageMagick via MacPorts:

$ which convert
/usr/local/bin/convert
$ which mogrify
$ mogrify
-bash: mogrify: command not found
$ sudo port install imagemagick
[... many lines removed for conciseness, but no errors reported ...]
$ which mogrify
/opt/local/bin/mogrify
$ which convert
/usr/local/bin/convert

And here is an abbreviated transcript of my expected experience:

$ which convert
/usr/local/bin/convert
$ which mogrify
$ mogrify
-bash: mogrify: command not found
$ sudo port install imagemagick
[... many lines removed for conciseness, but no errors reported ...]
$ which mogrify
/opt/local/bin/mogrify
$ which convert
/opt/local/bin/convert

Is this a genuine bug, or should I adjust my expectations? Either way, how can I best make /opt/local/bin/convert become the default convert command?

NB. http://www.imagemagick.org/script/binary-releases.php#macosx does seem to give the impression that sudo port install is all that's needed in order to make the MacPorts port of ImageMagick fully ready for use.

Change History (5)

comment:1 Changed 13 years ago by sam.kuper@…

s/the impression that sudo port install is all that's needed/the impression that sudo port install imagemagick is all that's needed

comment:2 Changed 13 years ago by sam.kuper@…

Cc: sam.kuper@… added

Cc Me!

comment:3 Changed 13 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

/usr/local/bin/convert is something that you installed (outside of MacPorts).

If you want /opt/local to be searched before /usr/local you can adjust your shell's $PATH.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

In your transcript it looks like you just needed to run hash -r (or the equivalent for your shell). Starting a new shell would also achieve the same.

comment:5 in reply to:  4 Changed 13 years ago by sam.kuper@…

Replying to jmr@…:

In your transcript it looks like you just needed to run hash -r (or the equivalent for your shell). Starting a new shell would also achieve the same.

Please could you explain what you mean by this?

Incidentally, I now agree that I was mistaken in filing a bug against the ImageMagick port. See http://lists.macosforge.org/pipermail/macports-users/2011-September/025653.html

Note: See TracTickets for help on using tickets.