zsh: Can't set DYLD_LIBRARY_PATH in ~/.zshenv to get ImageMagick working under MacOS Catalina Goal: Install ImageMagick on my iMac 27" 2017 running Catalina 10.15.3 (install failed under Homebrew). Plenty of RAM &amp; disk space.

Second line below doesn't execute, so echo $MAGICK_HOME yields expected results but echo $DYLD_LIBRARY_PATH results in a nil value.

file ~/.zshenv:

export MAGICK_HOME="/usr/local/bin/ImageMagick-7.0.9/"
export DYLD_LIBRARY_PATH="$MAGIC_HOME/lib/"
This is a simple typo!

The definition of the variable DYLD_LIBRARY_PATH  refers to the variable set in the previous line: MAGICK_HOME:

So add a K and the respective lines of .zshenv look like this then:

export MAGICK_HOME="/usr/local/bin/ImageMagick-7.0.9/"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"


Other source: Mac OS X Binary Release