Question

How to clean up ImageMagick Install in a Rails app with Paperclip?

I’ve had a problem with ImageMagick in my Rails application. It will upload GIF’s but not other image type. I searched for ImageMagick and it seems like I have multiple versions installed. I installed version 6.9.0 from source but it appears that an earlier version was installed. Can someone tell me if this looks right? If it isn’t how to I fix it?

find / -name ImageMagick /usr/lib/x8664-linux-gnu/ImageMagick-6.7.7 /usr/share/ImageMagick-6.7.7 /usr/share/man/man1/ImageMagick.1.gz /usr/local/lib/pkgconfig/ImageMagick++.pc /usr/local/lib/pkgconfig/ImageMagick-6.Q16.pc /usr/local/lib/pkgconfig/ImageMagick.pc /usr/local/lib/pkgconfig/ImageMagick+±6.Q16.pc /usr/local/lib/ImageMagick-6.9.0 /usr/local/etc/ImageMagick-6 /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick-6/magick/ImageMagick.h /usr/local/share/ImageMagick-6 /usr/local/share/man/man1/ImageMagick.1 /usr/local/share/doc/ImageMagick-6 /usr/local/share/doc/ImageMagick-6/images/ImageMagick.ico /usr/local/share/doc/ImageMagick-6/www/api/MagickCore/ImageMagick8h-source.html /usr/local/share/doc/ImageMagick-6/www/api/MagickCore/ImageMagick_8h.html /usr/local/share/doc/ImageMagick-6/www/ImageMagickObject.html /usr/local/share/doc/ImageMagick-6/www/Magick++/ImageMagick.png /etc/ImageMagick

Can I just delete “/usr/local/lib/ImageMagick-6.9.0” to fix my problem? How can I do a clean install?

Also, when I run which convert, I get the following.

which convert /usr/local/bin/convert

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This is what my production.rb file looks like:

Paperclip.options[:command_path] = “/usr/bin/” LD_LIBRARY_PATH = “/usr/bin/”

My development.rb file looks like:

Paperclip.options[:command_path] = “/usr/local/bin/”

I have a question related with this, my question is what did you put in config/environment.rb file.

Because i know that i have to put Paperclip.options[:command_path] = “/usr/bin/” in both development.rb and production.rb

But the instructions say that we have to put something in config/environment.rb file and i don’t know what is that.

Fixed the Paperclip load path in my production.rb environments file (/usr/bin/) and that solved my image upload problem.