views:

1791

answers:

3

Hello,

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 received while processing: # R

A: 

The path to ImageMagick is getting lost, try adding

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

to your config.

Mike Buckbee
that desn't seem to fix anything, I think it's got to do with the ngingx's ENV vars since runing a local webrick instancem works perfectly
Cezar
Make sure you have the correct path. I am running Ubuntu Server and it was actually "/usr/bin/" ... the trailing slash was key.
Kyle J. Dye
+2  A: 
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.

worked for me too, MacOSX 10.6.3 with ImageMagick from MacPorts.
miccet
Nice!! `/opt/local/bin` worked for me. Mac OSX Snow leopard.
Brian Armstrong
A: 

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

Paperclip.options[:command_path] = '/opt/local/bin' i tried both of these lines inside my config/initialize/paperclip.rb file but could not succeded. I think there is some problem while installing the imagemagick in my sysmtem.

By the way how do we check whether imagemaick is installed properly or not in Ubuntu 9.10 system?

thanks

Gagan
The basic command is 'convert'. To get the version, issue the 'convert --version' command. As for specific delegates, such as converting images you'd have to just try it I guess.
miccet