I am using ubuntu 10.10. In my rails 3.1 project, i am not able to upload any type of image files. While uploading an image file it shows an validation error like
/tmp/image1.jpg is not recognized by the 'identify' command.
My ruby version is,
ruby 1.9.3p327
I have installed both ImageMagick & rmagick gem & some other libdev tools. Now my rmagick gem is
rmagick (2.13.1)
& my cocaine gem is
cocaine (0.4.2, 0.2.1)
Also i have done following things,
I was tried below command while putting development.rb file,
Paperclip.optio ns[:command_path] = "/usr/local/bin/"
Please help me to solve this issue.
/tmp/image1.jpg is not recognized by the 'identify' command.
My ruby version is,
ruby 1.9.3p327
I have installed both ImageMagick & rmagick gem & some other libdev tools. Now my rmagick gem is
rmagick (2.13.1)
& my cocaine gem is
cocaine (0.4.2, 0.2.1)
Also i have done following things,
Code:
$ sudo apt-get install imagemagick $ sudo apt-get install graphicsmagick-libmagick-dev-compat $ sudo gem install rmagick $ cd /tmp $ curl -OL [url]ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz[/url] tar -xzf ImageMagick.tar.gz cd ImageMagick-6.8.0-10/ ./configure --prefix=/usr/local --disable-static --with-modules --without-perl -- without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts $ make $ sudo make install
Paperclip.optio ns[:command_path] = "/usr/local/bin/"
Please help me to solve this issue.