Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 97213
BY: Ayodele Abejide (bjhaid)
DATE: 2011-12-03 15:10
SUBJECT: Ruby oci8 not installing on cgywin

 

Hi,

I am trying to install ruby-oci8 on cgywin all to no avail, I have specified the paths correctly, but seem confused from the logs I keep getting, find the logs below.

$ tail -n 100 ruby-oci8-2.0.6/ext/oci8/mkmf.log
"gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/home/abejide/ruby-oci8-2.0.6/ext/oci8 -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long conftest.c -L. -L/usr/local/lib -L. -lruby191-static -lpthread -lrt -ldl -lcrypt "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */

"gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/home/abejide/ruby-oci8-2.0.6/ext/oci8 -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long conftest.c -L. -L/usr/local/lib -L. -lruby191-static -lpthread -lrt -ldl -lcrypt "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() { return 0; }
/* end */

./conftest
"gcc -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/home/abejide/ruby-oci8-2.0.6/ext/oci8 -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: #ifndef __GNUC__
5: # error
6: >>>>>> __GNUC__ undefined <<<<<<
7: #endif
/* end */

"gcc -o conftest -I/usr/local/include/ruby-1.9.1/i386-cygwin -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/home/abejide/ruby-oci8-2.0.6/ext/oci8 -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long conftest.c -L. -L/usr/local/lib -L. -lruby191-static -lpthread -lrt -ldl -lcrypt "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() { return sizeof(long) == 8 ? 0 : 1; }
/* end */

./conftest




$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [i386-cygwin]




$ ruby -r rbconfig -e "p Config::CONFIG['host']"
"i686-pc-cygwin"




$ ruby -r rbconfig -e "p Config::CONFIG['CC']"
"gcc"





$ ruby -r rbconfig -e "p Config::CONFIG['CFLAGS']"
" -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long"





$ ruby -r rbconfig -e "p Config::CONFIG['LDSHARED']"
"gcc -shared $(if $(filter-out -g -g0,-g),,-s)"





$ ruby -r rbconfig -e "p Config::CONFIG['DLDLAGS']"
nil




$ ruby -r rbconfig -e "p Config::CONFIG['LIBS']"
"-lpthread -lrt -ldl -lcrypt "





$ ruby -r rbconfig -e "p Config::CONFIG['GNU_LD']"
"yes"




$ gcc --print-prog-name=ld
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld.exe




$ gcc --print-prog-name=as
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe





$ file `which ruby`
/usr/local/bin/ruby: PE32 executable (console) Intel 80386, for MS Windows



$ file /opt/oracle/instantclient10_2/libclntsh.*
/opt/oracle/instantclient10_2/libclntsh.so: symbolic link to `libclntsh.so.10.1'
/opt/oracle/instantclient10_2/libclntsh.so.10.1: ELF 64-bit MSB shared object, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, not stripped




$ echo $LD_LIBRARY_PATH
/opt/oracle/instantclient10_2/





logs from compilation

$ ruby setup.rb config
---> lib
---> lib/dbd
<--- lib/dbd
---> lib/oci8
<--- lib/oci8
<--- lib
---> ext
---> ext/oci8
/usr/local/bin/ruby /home/abejide/ruby-oci8-2.0.6/ext/oci8/extconf.rb
checking for load library path...
PATH...
checking /usr/local/bin... no
checking /usr/bin... no
checking /cygdrive/c/Program Files (x86)/HP SimplePass 2011/x64... no
checking /cygdrive/c/Program Files (x86)/HP SimplePass 2011... no
checking /cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live... no
checking /cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live... no
checking /cygdrive/c/Windows/system32... no
checking /cygdrive/c/Windows... no
checking /cygdrive/c/Windows/System32/Wbem... no
checking /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0... no
checking /cygdrive/c/Program Files (x86)/Windows Live/Shared... no
checking /cygdrive/c/Program Files/Intel/WiFi/bin... no
checking /cygdrive/c/Program Files/Common Files/Intel/WirelessCommon... no
checking /cygdrive/c/Ruby192/bin... no
/usr/bin looks like a full client.
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... ok
---------------------------------------------------
Error Message:
MiniRegistry::MiniRegistryError
Backtrace:
/home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:84:in `enum_homes'
/home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:813:in `get_home'
/home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:711:in `initialize'
/home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:345:in `new'
/home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:345:in `get'
/home/abejide/ruby-oci8-2.0.6/ext/oci8/extconf.rb:18:in `<main>'
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html

*** /home/abejide/ruby-oci8-2.0.6/ext/oci8/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=/home/abejide/ruby-oci8-2.0.6/ext/oci8
--curdir
--ruby=/usr/local/bin/ruby
--with-instant-client
--without-instant-client
/home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:84:in `enum_homes': RuntimeError (RuntimeError)
from /home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:813:in `get_home'
from /home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:711:in `initialize'
from /home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:345:in `new'
from /home/abejide/ruby-oci8-2.0.6/ext/oci8/oraconf.rb:345:in `get'
from /home/abejide/ruby-oci8-2.0.6/ext/oci8/extconf.rb:18:in `<main>'
'system /usr/local/bin/ruby /home/abejide/ruby-oci8-2.0.6/ext/oci8/extconf.rb ' failed
Try 'ruby setup.rb --help' for detailed usage.





$ ruby -r rbconfig -e "p Config::CONFIG['LDFLAGS']"
"-L. "



Thread View

Thread Author Date
Ruby oci8 not installing on cgywinAyodele Abejide2011-12-03 15:10
      RE: Ruby oci8 not installing on cgywinKubo Takehiro2011-12-04 03:19
            RE: Ruby oci8 not installing on cgywinAyodele Abejide2011-12-04 07:54

Post a followup to this message