I get some errors installing the Ruby LSAPI gem (although it says it installed succesfully) and my Rails site does not respond. The access log reports the hit, and I can see that is being processed in the realtime admin report) but production.log does not report anything. Tried running webrick and it does work just fine so I am guessing there is a problem with the LSAPI.
UPDATE: Looks like even though the gem install says it was succesful it did not create lsapilib.so. What can I do to fix this? Are there any special requirements to build lsapi.so?
Server Specs
-------------------------------------------------------------
Red Hat Enterprise Linux ES release 2.1 (Panama)
LSWS 2.2 Standard
Ruby 1.8.4
Rails 1.1.6
Installing the gem:
-------------------------------------------------------------
# gem install ruby-lsapi
Building native extensions. This could take a while...
lsapilib.c: In function `LSAPI_ReqBodyGetLine_r':
lsapilib.c:778: parse error before `char'
lsapilib.c:780: `p' undeclared (first use in this function)
lsapilib.c:780: (Each undeclared identifier is reported only once
lsapilib.c:780: for each function it appears in.)
lsapilib.c:781: `pCur' undeclared (first use in this function)
make: *** [lsapilib.o] Error 1
lsapilib.c: In function `LSAPI_ReqBodyGetLine_r':
lsapilib.c:778: parse error before `char'
lsapilib.c:780: `p' undeclared (first use in this function)
lsapilib.c:780: (Each undeclared identifier is reported only once
lsapilib.c:780: for each function it appears in.)
lsapilib.c:781: `pCur' undeclared (first use in this function)
make: *** [lsapilib.o] Error 1
ruby extconf.rb install ruby-lsapi
checking for main() in -lsocket... no
creating Makefile
make
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c lsapilib.c
make install
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c lsapilib.c
make clean
Successfully installed ruby-lsapi-1.10
access.log:
-------------------------------------------------------------
1.2.3.4 - - [04/Oct/2006:15:44:19 -0700] "GET / HTTP/1.1" 503 401 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7" "admin.domain.com:6251"
stderror.log:
-------------------------------------------------------------
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- lsapi (MissingSourceFile)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /home/hyperxmedia.net/domains/admin.hyperxmedia.net/current/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `require'
from /usr/local/lsws/fcgi-bin/RailsRunner.rb:6
UPDATE: Looks like even though the gem install says it was succesful it did not create lsapilib.so. What can I do to fix this? Are there any special requirements to build lsapi.so?
Server Specs
-------------------------------------------------------------
Red Hat Enterprise Linux ES release 2.1 (Panama)
LSWS 2.2 Standard
Ruby 1.8.4
Rails 1.1.6
Installing the gem:
-------------------------------------------------------------
# gem install ruby-lsapi
Building native extensions. This could take a while...
lsapilib.c: In function `LSAPI_ReqBodyGetLine_r':
lsapilib.c:778: parse error before `char'
lsapilib.c:780: `p' undeclared (first use in this function)
lsapilib.c:780: (Each undeclared identifier is reported only once
lsapilib.c:780: for each function it appears in.)
lsapilib.c:781: `pCur' undeclared (first use in this function)
make: *** [lsapilib.o] Error 1
lsapilib.c: In function `LSAPI_ReqBodyGetLine_r':
lsapilib.c:778: parse error before `char'
lsapilib.c:780: `p' undeclared (first use in this function)
lsapilib.c:780: (Each undeclared identifier is reported only once
lsapilib.c:780: for each function it appears in.)
lsapilib.c:781: `pCur' undeclared (first use in this function)
make: *** [lsapilib.o] Error 1
ruby extconf.rb install ruby-lsapi
checking for main() in -lsocket... no
creating Makefile
make
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c lsapilib.c
make install
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c lsapilib.c
make clean
Successfully installed ruby-lsapi-1.10
access.log:
-------------------------------------------------------------
1.2.3.4 - - [04/Oct/2006:15:44:19 -0700] "GET / HTTP/1.1" 503 401 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7" "admin.domain.com:6251"
stderror.log:
-------------------------------------------------------------
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- lsapi (MissingSourceFile)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /home/hyperxmedia.net/domains/admin.hyperxmedia.net/current/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `require'
from /usr/local/lsws/fcgi-bin/RailsRunner.rb:6
Last edited: