RMagick Problems

Discussion in 'Ruby/Rails' started by cswilliams, May 2, 2007.

  1. cswilliams

    cswilliams New Member

    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. cswilliams

    cswilliams New Member

    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?
  3. cswilliams

    cswilliams New Member

    ok, I got it to work by creating a link from /usr/local/bin/gs to /usr/bin/gs.
  4. mistwang

    mistwang LiteSpeed Staff

    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.

Share This Page