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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Failure to compile ruby-lsapi on LS4.03/Ruby 1.9

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2009, 01:56 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
Default Failure to compile ruby-lsapi on LS4.03/Ruby 1.9

Hi!

I am trying to compile the LSAPI Ruby support package but it fails with this error:

Code:
---> ext
---> ext/lsapi
make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/root/ruby-lsapi-3.4/ext/lsapi -D_FILE_OFFSET_BITS=64  -fPIC  -O2 -g -Wall -Wno-parentheses  -o lsruby.o -c lsruby.c
In file included from lsruby.c:3:
/usr/local/include/ruby-1.9.1/ruby/backward/util.h:2:2: warning: #warning use "ruby/util.h" instead of bare "util.h"
lsruby.c: In function `lsapi_write':
lsruby.c:248: error: structure has no member named `ptr'
lsruby.c:248: error: structure has no member named `len'
lsruby.c: In function `lsapi_puts_ary':
lsruby.c:301: error: structure has no member named `len'
lsruby.c:303: error: structure has no member named `ptr'
lsruby.c:304: warning: implicit declaration of function `rb_inspecting_p'
lsruby.c: In function `lsapi_puts':
lsruby.c:332: warning: implicit declaration of function `rb_protect_inspect'
lsruby.c:340: error: structure has no member named `ptr'
lsruby.c:340: error: structure has no member named `len'
lsruby.c: In function `lsapi_gets':
lsruby.c:404: error: structure has no member named `len'
lsruby.c: In function `lsapi_read':
lsruby.c:449: error: structure has no member named `len'
make: *** [lsruby.o] Error 1
Tried compiling with both GCC 3.4.3 and GCC 4.1 to no avail. This happens both when trying to install through gem or manually.
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
  #2  
Old 05-15-2009, 09:11 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
For Rails, Ruby 1.8.7 is recommended.
We will test it on ruby 1.9.1 .
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 08:44 PM.



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