RMagick Problems

#1
Hi,
I'm trying to generate dynamic images using RMagick from my Rails application. When I run the action that generates the images from Litespeed, RMagick gives me an error that it cant find the PostScript Delegate. However, this same code, I copied into a regular shell script and it generates the image just fine. I also booted up my Rails Application in WebRick and it also displays the dynamic image fine. My guess is that this is some sort of path issue. For some reason when my rails app runs from Litespeed it cant see the ImageMagick Delegate plugins.

Any help would be appreciated.
Thanks,
Chris
 
#2
Also I wanted to add, this line appears in my stderr.log file when I try to access the action that generates the image.
sh: line 1: gs: command not found

This makes sense I guess since it needs to use ghostscript. How do I tell litespeed where ghostscript is?
 

mistwang

LiteSpeed Staff
#4
You can also set PATH environment variable under "Ruby" tab. The default PATH set by LiteSpeed is "/bin:/usr/bin" for application started by LiteSpeed.
 
Top