17

In a rails application, I have this error message :

This installation of RMagick was configured with ImageMagick 6.6.9 but ImageMagick 6.7.7-10 is in use.

I tried to uninstall and install RMagick as suggested in this post : RMagick complains it was configured with a different version of ImageMagick, but it does not work.

I also tried to download the latest version and compile from source but it does not works.

I don't know how to install ImageMagick 6.7.7-10. It seems to not be available on the official website.

I am using rmagick (2.13.2) and Ubuntu 14.04.

Is there a solution?

Dougui
  • 7,142
  • 7
  • 52
  • 87
  • Looks like Rmagick was installed with Imagemagick 6.6.9, but you have a more current version of Imagemagick at 6.7.7.10 on your system that probably came with an upgrade of your distro. This is causing a conflict. I think you need to remove at least RMagick if not both and then re-install. I do not know RMagick, so do the know if it self-installs Imagemagick. – fmw42 Dec 30 '17 at 00:03

3 Answers3

26

I finally found the solution. Instead of doing gem uninstall rmagick try using bundle exec gem uninstall rmagick.

I hope it will help someone else!

Rahul Dess
  • 2,397
  • 2
  • 21
  • 42
Dougui
  • 7,142
  • 7
  • 52
  • 87
11

For me, I did the following and it worked :

 gem uninstall rmagick
 bundle
Ian Vaughan
  • 20,211
  • 13
  • 59
  • 79
  • I spent an hour tried to check different variants, but your answer was right. I don't know why it's not worked with "bundle install", but work's fine with "bundle" command. – Ashen One Dec 27 '19 at 11:10
-1

bundle exec uninstall rmagick, to uninstall RMagick.

  • 1
    While this answer may be (technically) correct, it would be helpful to future readers of this post to have some more explanation and context provided by you. – Filnor Dec 29 '17 at 22:50