0

I am trying to install ImageMagick using the official instructions.

I have executed the three export commands:

export MAGICK_HOME="$HOME/ImageMagick-6.9.2" export PATH="$MAGICK_HOME/bin:$PATH" export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"

And I can make it to the end where I can execute:

> convert logo: logo.gif 
> identify logo.gif 
> display logo.gif

My $PATH shows imagemagick. However, when I close the terminal and re-examine $PATH, the imagemagick directory is missing.

What am I doing wrong? We isn't my $PATH saving after the exports?

Glorfindel
  • 4,158
emehex
  • 127

1 Answers1

0

full quote

Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:

export MAGICK_HOME="$HOME/ImageMagick-6.9.2"

If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:

export PATH="$MAGICK_HOME/bin:$PATH"

Set the DYLD_LIBRARY_PATH environment variable:

export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/

add those export commands to your .bashrc according to your installation.

this is necessary because all exported variables gets reset in a new shell. .bashrc is executed on shell startup, similar to .bash_profile but .bash_profile might not work in every case, it requires a login shell. make sure that no command placed in, .bashrc outputs anything, this will make commands like scp fail silently.