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
精彩评论