Can't figure out how to compile ruby-lsapi on this server. Any ideas?
LiteSpeed/2.2.4 Standard
# uname -a
Linux xyz.domain.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 4.4 (Final)
# rpm -qa|grep gcc
libgcc-3.4.6-3
libgcc-3.4.6-3
compat-libgcc-296-2.96-132.7.2
gcc-3.4.6-3
# gem install ruby-lsapi
Building native extensions. This could take a while...
lsruby.c: In function `lsapi_ruby_setenv':
lsruby.c:60: warning: implicit declaration of function `ruby_setenv'
lsruby.c:62: warning: implicit declaration of function `ruby_unsetenv'
lsruby.c: In function `lsapi_fork_child':
lsruby.c:216: warning: implicit declaration of function `setsid'
lsruby.c:242: warning: implicit declaration of function `usleep'
lsruby.c:284: warning: implicit declaration of function `fork'
lsruby.c:288: warning: implicit declaration of function `getppid'
lsruby.c:306: warning: implicit declaration of function `close'
lsruby.c:318: warning: implicit declaration of function `getpgrp'
lsruby.c: In function `chdir_file':
lsruby.c:401: warning: implicit declaration of function `chdir'
lsruby.c: In function `lsapi_write':
lsruby.c:448: warning: unused variable `data'
lsruby.c: At top level:
lsruby.c:32: warning: 'lsapi_objrefs' defined but not used
lsruby.c:56: warning: 'lsapi_ruby_setenv' defined but not used
lsruby.c:73: warning: 'lsapi_free_data' defined but not used
lsruby.c:395: warning: 'chdir_file' defined but not used
lsruby.c:671: warning: 'lsapi_isatty' defined but not used
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
ruby extconf.rb install ruby-lsapi
checking for main() in -lsocket... no
creating Makefile
make
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsruby.c
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsapilib.c
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make install
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make clean
Successfully installed ruby-lsapi-1.11
# cd /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-1.11
# ruby setup.rb
---> lib
<--- lib
---> ext
---> ext/lsapi
/usr/bin/ruby /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-1.11/ext/lsapi/extconf.rb
checking for main() in -lsocket... no
creating Makefile
<--- ext/lsapi
<--- ext
---> lib
<--- lib
---> ext
---> ext/lsapi
make
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
from setup.rb:664:in `make'
from setup.rb:1258:in `setup_dir_ext'
from setup.rb:1532:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1534:in `traverse'
from setup.rb:1533:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1524:in `exec_task_traverse'
from setup.rb:1519:in `exec_task_traverse'
from setup.rb:1246:in `exec_setup'
from setup.rb:996:in `exec_setup'
from setup.rb:813:in `invoke'
from setup.rb:773:in `invoke'
from setup.rb:1578
# gem install ruby-lsapi -- --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target =x86_64-redhat-linux-gnu --with-libdir=lib64
Building native extensions. This could take a while...
lsruby.c: In function `lsapi_ruby_setenv':
lsruby.c:60: warning: implicit declaration of function `ruby_setenv'
lsruby.c:62: warning: implicit declaration of function `ruby_unsetenv'
lsruby.c: In function `lsapi_fork_child':
lsruby.c:216: warning: implicit declaration of function `setsid'
lsruby.c:242: warning: implicit declaration of function `usleep'
lsruby.c:284: warning: implicit declaration of function `fork'
lsruby.c:288: warning: implicit declaration of function `getppid'
lsruby.c:306: warning: implicit declaration of function `close'
lsruby.c:318: warning: implicit declaration of function `getpgrp'
lsruby.c: In function `chdir_file':
lsruby.c:401: warning: implicit declaration of function `chdir'
lsruby.c: In function `lsapi_write':
lsruby.c:448: warning: unused variable `data'
lsruby.c: At top level:
lsruby.c:32: warning: 'lsapi_objrefs' defined but not used
lsruby.c:56: warning: 'lsapi_ruby_setenv' defined but not used
lsruby.c:73: warning: 'lsapi_free_data' defined but not used
lsruby.c:395: warning: 'chdir_file' defined but not used
lsruby.c:671: warning: 'lsapi_isatty' defined but not used
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
ruby extconf.rb install ruby-lsapi -- --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --with-libdir=lib64
checking for main() in -lsocket... no
creating Makefile
make
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsruby.c
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsapilib.c
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make install
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make clean
Successfully installed ruby-lsapi-1.11
LiteSpeed/2.2.4 Standard
# uname -a
Linux xyz.domain.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 4.4 (Final)
# rpm -qa|grep gcc
libgcc-3.4.6-3
libgcc-3.4.6-3
compat-libgcc-296-2.96-132.7.2
gcc-3.4.6-3
# gem install ruby-lsapi
Building native extensions. This could take a while...
lsruby.c: In function `lsapi_ruby_setenv':
lsruby.c:60: warning: implicit declaration of function `ruby_setenv'
lsruby.c:62: warning: implicit declaration of function `ruby_unsetenv'
lsruby.c: In function `lsapi_fork_child':
lsruby.c:216: warning: implicit declaration of function `setsid'
lsruby.c:242: warning: implicit declaration of function `usleep'
lsruby.c:284: warning: implicit declaration of function `fork'
lsruby.c:288: warning: implicit declaration of function `getppid'
lsruby.c:306: warning: implicit declaration of function `close'
lsruby.c:318: warning: implicit declaration of function `getpgrp'
lsruby.c: In function `chdir_file':
lsruby.c:401: warning: implicit declaration of function `chdir'
lsruby.c: In function `lsapi_write':
lsruby.c:448: warning: unused variable `data'
lsruby.c: At top level:
lsruby.c:32: warning: 'lsapi_objrefs' defined but not used
lsruby.c:56: warning: 'lsapi_ruby_setenv' defined but not used
lsruby.c:73: warning: 'lsapi_free_data' defined but not used
lsruby.c:395: warning: 'chdir_file' defined but not used
lsruby.c:671: warning: 'lsapi_isatty' defined but not used
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
ruby extconf.rb install ruby-lsapi
checking for main() in -lsocket... no
creating Makefile
make
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsruby.c
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsapilib.c
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make install
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make clean
Successfully installed ruby-lsapi-1.11
# cd /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-1.11
# ruby setup.rb
---> lib
<--- lib
---> ext
---> ext/lsapi
/usr/bin/ruby /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-1.11/ext/lsapi/extconf.rb
checking for main() in -lsocket... no
creating Makefile
<--- ext/lsapi
<--- ext
---> lib
<--- lib
---> ext
---> ext/lsapi
make
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
from setup.rb:664:in `make'
from setup.rb:1258:in `setup_dir_ext'
from setup.rb:1532:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1534:in `traverse'
from setup.rb:1533:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1524:in `exec_task_traverse'
from setup.rb:1519:in `exec_task_traverse'
from setup.rb:1246:in `exec_setup'
from setup.rb:996:in `exec_setup'
from setup.rb:813:in `invoke'
from setup.rb:773:in `invoke'
from setup.rb:1578
# gem install ruby-lsapi -- --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target =x86_64-redhat-linux-gnu --with-libdir=lib64
Building native extensions. This could take a while...
lsruby.c: In function `lsapi_ruby_setenv':
lsruby.c:60: warning: implicit declaration of function `ruby_setenv'
lsruby.c:62: warning: implicit declaration of function `ruby_unsetenv'
lsruby.c: In function `lsapi_fork_child':
lsruby.c:216: warning: implicit declaration of function `setsid'
lsruby.c:242: warning: implicit declaration of function `usleep'
lsruby.c:284: warning: implicit declaration of function `fork'
lsruby.c:288: warning: implicit declaration of function `getppid'
lsruby.c:306: warning: implicit declaration of function `close'
lsruby.c:318: warning: implicit declaration of function `getpgrp'
lsruby.c: In function `chdir_file':
lsruby.c:401: warning: implicit declaration of function `chdir'
lsruby.c: In function `lsapi_write':
lsruby.c:448: warning: unused variable `data'
lsruby.c: At top level:
lsruby.c:32: warning: 'lsapi_objrefs' defined but not used
lsruby.c:56: warning: 'lsapi_ruby_setenv' defined but not used
lsruby.c:73: warning: 'lsapi_free_data' defined but not used
lsruby.c:395: warning: 'chdir_file' defined but not used
lsruby.c:671: warning: 'lsapi_isatty' defined but not used
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libruby.so when searching for -lruby
/usr/bin/ld: skipping incompatible /usr/lib/libruby.so when searching for -lruby
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [lsapi.so] Error 1
ruby extconf.rb install ruby-lsapi -- --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --with-libdir=lib64
checking for main() in -lsocket... no
creating Makefile
make
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsruby.c
gcc -fPIC -O0 -g -pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c lsapilib.c
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make install
gcc -shared -L"/usr/lib" -o lsapi.so lsruby.o lsapilib.o -lruby -ldl -lcrypt -lm -lc
make clean
Successfully installed ruby-lsapi-1.11
Last edited: