By RedMagnum30
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
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/”
Fixed the Paperclip load path in my production.rb environments file (/usr/bin/) and that solved my image upload problem.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.