Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick and Paperclip on Rails only accepts bmp file

I'm trying to set up a rails app with paperclip and ImageMagick on Ubunutu 10.10, I have managed to make it work but only with bmp files, when i try to upload any other kind of file I get the error:

Image Paperclip::CommandNotFoundError
Image Paperclip::CommandNotFoundError

I thought it had something to do with ImageMagic so I found this old tutorial

http://www.randycullom.com/chatterbox/archives/2006/12/installing_imag.html

So I uninstall ImageMagick, installed jpg,tiff and png libraries, on jgp library I used

./configure --enable-shared ...

And then install ImageMagic with configure

./configure --enable-lzw=yes --enable-shared=yes --disable-static --without-perl make sudo make install

and the error still apears, on my enviroment.rb I have

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

Which is the path than running 'which convert' gave me, on gem file:

gem "paperclip", "~> 2.3" gem 'rmagick'

What am I missing? Help would be much appreciated.

like image 408
Miguel Avatar asked Mar 24 '11 06:03

Miguel


1 Answers

Ubuntu 16.04: sudo apt-get -y install imagemagick libmagickcore-dev libmagickwand-dev

like image 145
rusllonrails Avatar answered Oct 25 '22 23:10

rusllonrails