Rails Error: ImageMagick/GraphicsMagick is not installed

ascherman picture ascherman · Mar 31, 2015 · Viewed 17.6k times · Source

I get this error when i ran my rails app on my OSX and i tried to upload an image.

I have a "product" model and i am using Mini_Magick with CarrierWave for uploading the product's image. When i create a product on my ubuntu's laptop, it works fine, but when i do that on my macbook, it throws the error:

Image Failed to manipulate with MiniMagick, maybe it is not an image? Original Error:

ImageMagick/GraphicsMagick is not installed

I have done the "bundle install" command and everything works fine... do you know what could be the problem?

Answer

MZaragoza picture MZaragoza · Mar 31, 2015

I am thinking that you may now have some of the foundations on your OSX. You can try removing everything and start again:

to uninstall

brew uninstall imagemagick graphicsmagick libpng jpeg
brew cleanup -s

To install

brew install graphicsmagick

Hope that this works for you