 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Don McClean
Cannot install ruby-oci8 gem [ reply ] 2011-02-10 23:07
|
I am attempting to install ruby-oci8 for Ruby 1.9.2 on Linux 64 bit, with following error info:
lindesk33.dal.design.ti.com[131]% gem install ruby-oci8
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8:
ERROR: Failed to build gem native extension.
/apps/free/ruby/1.9.2-p136/bin/ruby extconf.rb
checking for load library path...
LD_LIBRARY_PATH...
checking /usr/lib... no
checking /usr/X11R6/lib... no
checking /apps/oracle/9.2.0.4/product/lib... yes
/apps/oracle/9.2.0.4/product/lib/libclntsh.so.9.0 looks like a full client.
checking for cc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/apps/free/ruby/1.9.2-p136/bin/ruby
--with-instant-client
--without-instant-client
/apps/free/ruby/1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': RuntimeError (RuntimeError)
from /apps/free/ruby/1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'
from /apps/free/ruby/1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:615:in `try_run'
from /data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:558:in `check_cc'
from /data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:549:in `init'
from /data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:680:in `initialize'
from /data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:345:in `new'
from /data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:345:in `get'
from extconf.rb:18:in `<main>'
---------------------------------------------------
Error Message:
The complier failed to generate an executable file.
You have to install development tools first.
Backtrace:
/apps/free/ruby/1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:368:in `try_do'
/apps/free/ruby/1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'
/apps/free/ruby/1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:615:in `try_run'
/data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:558:in `check_cc'
/data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:549:in `init'
/data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:680:in `initialize'
/data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:345:in `new'
/data/trkscrib/ruby/gems/gems/ruby-oci8-2.0.4/ext/oci8/oraconf.rb:345:in `get'
extconf.rb:18:in `<main>'
I have included all the suggested information
to post below. I am using the Full client.
My mkmf.log is:
cat mkmf.log
"gcc -o conftest -I/apps/free/ruby/1.9.2-p136/include/ruby-1.9.1/x86_64-linux -I/apps/free/ruby/1.9.2-p136/include/ruby-1.9.1/ruby/backward -I/apps/free/ruby/1.9.2-p136/include/ruby-1.9.1 -I. -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c -L. -L/apps/free/ruby/1.9.2-p136/lib -Wl,-R/apps/free/ruby/1.9.2-p136/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/apps/free/ruby/1.9.2-p136/lib -L/apps/free/ruby/1.9.2-p136/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -lc"
cc1: error: unrecognized command line option "-Wno-missing-field-initializers"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
ruby --version
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux]
indesk33.dal.design.ti.com[136]% ruby -r rbconfig -e "p Config::CONFIG['host']"
"x86_64-unknown-linux-gnu"
lindesk33.dal.design.ti.com[137]% ruby -r rbconfig -e "p Config::CONFIG['CC']"
"gcc"
lindesk33.dal.design.ti.com[138]% ruby -r rbconfig -e "p Config::CONFIG['CFLAGS']"
" -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long"
lindesk33.dal.design.ti.com[139]% ruby -r rbconfig -e "p Config::CONFIG['LDSHARED']"
"gcc -shared"
lindesk33.dal.design.ti.com[140]% ruby -r rbconfig -e "p Config::CONFIG['LDFLAGS']"
"-L. -rdynamic -Wl,-export-dynamic"
lindesk33.dal.design.ti.com[141]% ruby -r rbconfig -e "p Config::CONFIG['DLDLAGS']"
nil
lindesk33.dal.design.ti.com[142]% ruby -r rbconfig -e "p Config::CONFIG['LIBS']"
"-lpthread -lrt -ldl -lcrypt -lm "
lindesk33.dal.design.ti.com[143]% ruby -r rbconfig -e "p Config::CONFIG['GNU_LD']"
"yes"
lindesk33.dal.design.ti.com[144]% gcc --print-prog-name=ld
ld
lindesk33.dal.design.ti.com[145]% gcc --print-prog-name=as
as
lindesk33.dal.design.ti.com[146]% file `which
Unmatched `.
lindesk33.dal.design.ti.com[147]% file `which /apps/free/ruby/1.9.2-p136/bin/ruby/`
/apps/free/ruby/1.9.2-p136/bin/ruby/:: cannot open (/apps/free/ruby/1.9.2-p136/bin/ruby/:)
Command: cannot open (Command)
not: cannot open (not)
found.: cannot open (found.)
lindesk33.dal.design.ti.com[148]% file `which /apps/free/ruby/1.9.2-p136/bin/ruby`
/apps/free/ruby/1.9.2-p136/bin/ruby: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped
lindesk33.dal.design.ti.com[149]% file $ORACLE_HOME/bin/oracle
/apps/oracle/9.2.0.4/product/bin/oracle: cannot open (/apps/oracle/9.2.0.4/product/bin/oracle)
lindesk33.dal.design.ti.com[150]% ls $ORACLE_HOME/bin
adapters demodrop gensyslib ldapmodify namesctl okinit0 passwdconvert sqlplusO tstshm
bndlchk deploync helpins ldapmodifymt ncomp oklist proc statusnc umu
bndlchk.sbs dropjava imp ldapsearch netca oklist0 pupbld symfind unzip
bulkmodify dumpsga impO ldifmigrator netmgr onrsd relink tkprof xml
coraenv echodo jpub ldifwrite odisrv onrsd0 remtool tkprofO xmlcg
csscan exp kgmgr lmsgen odisrvreg onrsdO rman tnsping xsql
csscanO expO kgmgrO loadjava oerr oracg rmanO tnsping0
cursize extproc32 kgpmon loadpsp oidadmin oraenv sbttest tnspingO
dbfsize extractlib ldapadd loadpspO oidpasswd oraxml schema transx
dbhome genagtsh ldapaddmt lxchknlb oidprovtool oraxsl schemasync trcasst
dbshut genclntsh ldapbind lxegen oidreconcile osh sqlj trcfmt
dbstart genclntst ldapcompare lxinst okdstry ott sqlldr trcroute
debugproxy gennfgt ldapdelete mapsga okdstry0 ott8 sqlldrO trcroute0
demobld gennttab ldapmoddn maxmem okinit owm sqlplus trcrouteO
lindesk33.dal.design.ti.com[151]% ls /apps/oracle/9.2.0.4/
product
lindesk33.dal.design.ti.com[152]% echo $LD_LIBRARY_PATH
/usr/lib:/usr/X11R6/lib:/apps/oracle/9.2.0.4/product/lib:/apps/oracle/9.2.0.4/product/jre/1.1.8/lib/sparc/native_threads
|
|
 |