RMagick complains it was configured with a different version of ImageMagick

If using bundler:

bundle exec gem uninstall rmagick

bundle install (will reinstall rmagick as part of the bundle)


I would remove any previous installation and start again by following this page. First of all open a shell and launch:

identify -version

which will give you the IM version installed on your system.

Depending on how You installed IM, find the way to remove It completely from the system. For instance if you used apt-get, try:

sudo apt-get remove ImageMagick

If you installed IM from sources, go to where you have them stored (I mean the sources path/folder) and type:

make uninstall

You can then reinstall ImageMagick, compiling it from the sources:

cd
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz 
tar zxf ImageMagick.tar.gz 
cd ImageMagick-*/ 
./configure --prefix=$HOME --without-perl
make
make install

Then you have to add $HOME/bin to the beginning of your $PATH

cd
echo "export PATH=$HOME/bin:\$PATH" >> .bash_profile
source .bash_profile

Now it's time to gem install RMagick:

export LD_LIBRARY_PATH=$HOME/lib
gem install rmagick

the same thing happened to me but the solution was a bit simpler than uninstalling imageMagick. It sounds like Rmagick's config file isn't updated to use your updated imagemagick so try

sudo gem uninstall rmagick
sudo gem install rmagick

restart your server.

This worked for me hope it helps

I took a closer look and noticed you had Rmagick configured for a newer imageMagick but using an older imageMagick. So I would assume that my solution would still work but you would not be using the newer ImageMagick.