title: How to properly install ImageMagick on Mac OSX Mojave without a package manager
body: <p>I am having issues running ImageMagick functions from a bash script, <strong>but not from bash</strong>. It was suggested to me to remove and reinstall ImageMagick. See <a href="https://stackoverflow.com/q/57349001/1011320">imagemagick error when run from bash script on Mac OSX</a> for my original post.</p>
  
  <p>All installations seem to require Homebrew, but bash is complaining about security issues when I run <code>sudo brew</code>. Is there no other way of installing ImageMagick? The way I have installed is according to the instructions at <a href="https://imagemagick.org/script/download.php" rel="nofollow noreferrer">https://imagemagick.org/script/download.php</a>:</p>
  
  <ol>
  <li>Download the tar file</li>
  <li>Extract the tar to <code>~/Applications</code></li>
  <li><p>Add ImageMagick paths as exports in <code>~/.bashrc</code> </p>
  
  <p><code>export MAGICK_HOME="$HOME/Applications/ImageMagick-7.0.8"
  export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
  export PATH="$PATH:$MAGICK_HOME/bin"</code></p></li>
  </ol>
  
  <p>EDIT: I just noticed that <code>echo $DYLD_LIBRARY_PATH</code> prints nothing when it is inside a script.</p>