开发者

mod_rails and Paperclip problem Paperclip::NotIdentifiedByImageMagickError

I am havingn troble deploying my app to a server runing ubuntu with mod_rails. Runing webrick on the server seems fine and I can save files, no problem. But runing the app thru nginx, I get this error when I try to save a file.

[paperclip] An error was received while processing: # [paperclip] An error was r开发者_开发百科eceived while processing: # R


Paperclip.options[:image_magick_path]

Is deprecated, apparently. Try:

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

Which worked for me. Adjust path to ImageMagick as needed.


The path to ImageMagick is getting lost, try adding

Paperclip.options[:image_magick_path] = '/opt/local/bin'

to your config.


If adding

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

doesn't work try installing ImageMagick with common delegates:

mkdir /sources cd /sources

wget
ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

tar xvfz ImageMagick.tar.gz

cd ImageMagick-6.6.7-8

Here comes the part makes the difference

./configure --disable-static
--with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8

make

sudo make install
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜