Question

I installed ImageMagick using

$ sudo port install ImageMagick

However, when I run a basic command in a new terminal window, I get an error

$ convert logo.gif
-bash: convert: command not found

Why can't I run ImageMagick commands?

I've added ImageMagick to my path. See below for a bash profile:

#~/.bash_profile
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
export PATH="$MAGICK_HOME/bin:$PATH"
export MAGICK_HOME="$HOME/ImageMagick-6.8.9"

Note, I removed the above from my bash profile when I applied my solution.

Was it helpful?

Solution

I uninstalled macports and installed homebrew instead. Then I installed ImageMagick with homebrew and it worked just fine.

I needed to use the command: brew install imagemagick --build-from-source. The regular command gave me a different error

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top