문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top