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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Problem installing ruby-lsapi

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2006, 12:50 PM
sfreiberg sfreiberg is offline
Member
 
Join Date: Sep 2006
Posts: 15
Default Problem installing ruby-lsapi

I'm having problems installing ruby-lsapi on Solaris 10. When I run 'gem install ruby-lsapi' I get the following errors:

Building native extensions. This could take a while...
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from lsapilib.c:52:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from lsapilib.c:52:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from lsapilib.c:52:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make: *** [lsapilib.o] Error 1
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from lsapilib.c:52:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from lsapilib.c:52:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from lsapilib.c:52:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make: *** [lsapilib.o] Error 1

Anybody have any ideas? I'd really like to test this for our Ruby sites.
Reply With Quote
  #2  
Old 09-06-2006, 02:08 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We don't have this problem on our solaris 10 server.
What compiler are you using?

Last edited by mistwang; 09-06-2006 at 02:11 PM..
Reply With Quote
  #3  
Old 09-06-2006, 02:44 PM
sfreiberg sfreiberg is offline
Member
 
Join Date: Sep 2006
Posts: 15
Looks like it's using the GCC compiler package I installed. It's gcc 3.3.2 on Intel Solaris. Should I be using something else and if so how do I set that when doing a gem install?
Reply With Quote
  #4  
Old 09-06-2006, 02:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Our gcc is 3.4.2, gcc command is in /opt/csw/gcc3/bin/gcc.
The error is completely in the system header files. I think it is compiler environment issue.
Reply With Quote
  #5  
Old 09-06-2006, 04:25 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Our gcc package is installed as part of the http://www.blastwave.org/ software repo.
Reply With Quote
  #6  
Old 09-22-2006, 09:19 PM
sfreiberg sfreiberg is offline
Member
 
Join Date: Sep 2006
Posts: 15
Ok, I figured out the compile problems. It looks like it was because I was using Blastwave ruby and gem packages. I grabbed the Sun compiler and everything compiles fine now. I've been away from Solaris for a long time so I'm slowly getting back up to speed. I'm still having problems running rails apps though. I create a fresh rails app and verify that it works ok by running the built in WEBrick server and everything comes up fine. Then I use the rails template and I get nothing. I can hit the rails index.html page just fine but if I try to hit a dynamic page it just hangs. When I look at the process list I see a couple of RubyRunner.rb processes, but the browser just sits there waiting for a response. I don't see anything in the logs so I'm not sure what else to look at.

I appreciate your help and I'd really like to use litespeed for our production environment because I hate the idea of using Apache/Mongrel in prod. Just seems like a configuration nightmare.
Reply With Quote
  #7  
Old 09-22-2006, 09:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please uninstall the ruby-lsapi gem then try http://www.litespeedtech.com/package...api-1.9.tar.gz, It is recommended to install ruby and gem manually from source if 1.9 does not work with your rails installation either.
Reply With Quote
  #8  
Old 10-16-2006, 01:05 PM
sfreiberg sfreiberg is offline
Member
 
Join Date: Sep 2006
Posts: 15
Ok, I've tried installing Ruby and gems from source and still no luck. I'm determined to make this work because I really don't want to use Apache/Mongrel or even LS/Mongrel for that matter. Quick recap on where I am in my latest attempt.

I installed Solaris 10u2. I installed the Sun compiler and did a gem install ruby-lsapi. Other than a few warnings about undeclared methods the compile went fine. A C programmer in the office told me those are fine and if they were serious it wouldn't compile. I created a test rails site and made sure it could connect to a test database server on another box (using rake db:migrate). When I hit the rails site in a browser the index.html page loads fine but when I try and hit a dynamic page it comes back with a 503. So I ran RailsRunnber.rb from the command line, changing the first require line to point to my rails app and it starts and runs just fine. No errors except for the error below.

warning: already initialized constant ENV

In fact that is the only error message in any of the logs. So it appears to me that the lsapi and RailsRunner are working ok, although I'm not sure how to test the RailsRunner other than to look for errors when running it on the command line. Any thoughts on where to go from here?
Reply With Quote
  #9  
Old 10-16-2006, 01:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can try a default Rails application without DB involved first. run in development mode and check Rails' log file as well.

Also, you need to pay attention about the "Process Limits" and "memory limits" under "Rails" tab as well as "security" tab, increase them to a higher value.

LSAPI is working fine when you see that warning message, it is safe to ignore that error message.
Reply With Quote
  #10  
Old 10-16-2006, 04:09 PM
sfreiberg sfreiberg is offline
Member
 
Join Date: Sep 2006
Posts: 15
I'm using a freshly created rails app. I only changed the database.yml file to point to a real database to rule out that the app wasn't hanging because it was trying to use a database. I upped the default time outs to 120, but everything else is the default settings and a fresh rails app should be well under that. Also, I did a netstat -na and I see /tmp/lshttpd/railstest:_.sock which is obviously the socket that the RailsRunner is using, but for whatever reason it just won't run the rails app. Could there be something blocking the communication between the RailsRunner and LS?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup for Rails via Litespeed Ruby LSAPI Justin Ruby/Rails 2 12-08-2007 07:19 PM
Ruby LSAPI 2.4 and PHP LSAPI 3.1 released mistwang News 0 04-24-2007 03:35 PM
LSAPI Ruby v1.12, PHP v2.4 Released mistwang News 0 01-10-2007 01:18 PM
Problem installing LiteSpeed 2.2.1 Standard on UNIX perezsy Install/Configuration 17 09-22-2006 09:53 AM
LSWS Ruby LSAPI zoom Install/Configuration 2 05-14-2006 04:50 PM


All times are GMT -7. The time now is 09:23 PM.



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