LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > RMagick Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2007, 05:41 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Default RMagick Problems

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
Reply With Quote
  #2  
Old 05-01-2007, 06:03 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
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?
Reply With Quote
  #3  
Old 05-01-2007, 06:10 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
ok, I got it to work by creating a link from /usr/local/bin/gs to /usr/bin/gs.
Reply With Quote
  #4  
Old 05-01-2007, 08:35 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:24 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.