LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Ruby/Rails (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=20)
-   -   Failure to compile ruby-lsapi on LS4.03/Ruby 1.9 (http://www.litespeedtech.com/support/forum/showthread.php?t=2989)

priestjim 05-15-2009 01:56 AM

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.

mistwang 05-15-2009 09:11 AM

For Rails, Ruby 1.8.7 is recommended.
We will test it on ruby 1.9.1 .


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