But, my Rails app isn't working, here is the error:
This installation of RMagick was configured with ImageMagick 6.5.1 but
ImageMagick 6.0.6 is in use.
I tried to set the environment variable: LD_LIBRARY_PATH... but no
success...
I've read a lot of people with the same problem, but i couldn't find
the solution.
I guess the problem is to set a environment variable in passenger.
Does anybody can help me?
1) Did you install your own version of ImageMagick in your local
directory? Both of the following two Unix commands should give the
same response. NOTE: YOUR_HOME should be the path to your home
directory. i.e.: I see /Users/rick/local/bin/Magick-config on my
system.
$ ls ~/local/bin/Magick-config
YOUR_HOME/local/bin/Magick-config
$ which Magick-config
YOUR_HOME/local/bin/Magick-config
$
If the first command fails, you need to re-install ImageMagick paying
attention to the instructions for setting "--prefix=" in the
configuration step. After the re-install of ImageMagick you'll need
to reinstall RMagick.
If the first command succeeds but the second fails, you need to add
the RMagick export settings to your shell's runtime command file.
Shell RC File
bash ~/.profile or ~/.bashrc
csh ~/.login or ~/.cshrc
tcsh ~/.login or ~/.tcshrc
ksh ~/.profile or ~/.kshrc
sh ~/.profile
Log out and back in and retry the "ls ~/local/bin/Magick-config" and
"which Magick-config". The results of both commands should now be
identical. If you check the file (more ~/local/bin/Magick-config) you
should see the prefix, exec_prefix, libdir, and included_dir as
pointing at your home directory. RMagick should work now.