ruby-on-railsmongoidminimagick

ERROR Original Error: ImageMagick/GraphicsMagick is not installed


I have an app that is using Imagemagick, but I had to rebuild my environment and now when I try and upload an avatar (which is why I am using Imagemagick), it keeps giving me the following error when I try to add an image.

Avatar Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed

I installed it in the folder that holds my app, but it seems as though the app is not recognizing the install. Is there a way to make the app recognize the minimagick or did I install it in the wrong place or am I completely off.

-UPDATE-

I uninstalled minimgick and reinstalled, but still get the same error, although it shows that it is installed. Here are my versions...

-imagemagick-6.9.1-6

-ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

-Rails 4.0.10

-running on a mac


Solution

  • You need to install libmagickwand-dev in order to successfully complete the rmagick gem. Following command will do the job for you:

    sudo apt-get install libmagickwand-dev
    

    On a Mac, you would run the following command:

    brew install imagemagick # it requires you to install Homebrew first.