Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick: dyld: Library not loaded. Reason: image not found

  1. I downloaded ImageMagick from https://www.imagemagick.org/script/download.php#macosx
  2. extracted it to ~/Documents/software
  3. my .profile looks like this:
export MAGICK_HOME="~/Documents/software/ImageMagick-7.0.7"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
export PATH="$MAGICK_HOME/bin:$PATH"
  1. when I run convert I get:

dyld: Library not loaded: /ImageMagick-7.0.7/lib/libMagickCore-7.Q16HDRI.4.dylib
Referenced from: /Users/oa/Documents/software/ImageMagick-7.0.7/bin/convert
Reason: image not found Abort trap: 6

like image 986
oabarca Avatar asked Nov 24 '17 18:11

oabarca


1 Answers

As suggested by @Mark Setchell, the solution was to replace ~ by $HOME. Therefore, the export commands should be:

export MAGICK_HOME="$HOME/Documents/software/ImageMagick-7.0.7"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
export PATH="$MAGICK_HOME/bin:$PATH"
like image 89
oabarca Avatar answered Oct 24 '22 03:10

oabarca