Forum: Ruby Installing ruby-oci8 on Mac OS X for Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D62308e6f4a387595064a6df1cfff538?d=identicon&s=25 unknown (Guest)
on 2006-02-13 19:28
(Received via mailing list)
I am trying to get Rails to work with an Oracle database running
remotely. Rails will run on Mac OS X. I'm trying to follow the
directions at
http://creativi.st/blog/articles/2005/06/25/rails-...,
but I get stuck at step 8 (test connection to database). When I try go
on and install the ruby-oci8 bindings, I get this output when trying to
config:

---> lib
---> lib/DBD
---> lib/DBD/OCI8
<--- lib/DBD/OCI8
<--- lib/DBD
<--- lib
---> ext
---> ext/oci8
/usr/bin/ruby /Users/brian/Desktop/ruby-oci8-0.1.13/ext/oci8/extconf.rb
--with-instant-client=/usr/local/oracle/instantclient10_1/
checking for gcc... yes
checking for LP64... no
checking for OCIInitialize()... no
--------------- common error message --------------
If you use Oracle instant client, try with --with-instant-client.

zip package:
  ruby setup.rb config --
--with-instant-client=/path/to/instantclient10_1

rpm package:
  ruby setup.rb config -- --with-instant-client

The latest version of oraconf.rb may solve the problem.

http://rubyforge.org/cgi-bin/viewcvs.cgi/ruby-oci8...

If it could not be solved, send the following information to
kubo@jiubao.org.

* error messages except 'common error message'.
* last 100 lines of 'ext/oci8/mkmf.log'.
* results of the following commands:
    ruby -r rbconfig -e "p Config::CONFIG['host']"
    ruby -r rbconfig -e "p Config::CONFIG['CC']"
    ruby -r rbconfig -e "p Config::CONFIG['CFLAGS']"
    ruby -r rbconfig -e "p Config::CONFIG['LDSHARED']"
    ruby -r rbconfig -e "p Config::CONFIG['LDFLAGS']"
    ruby -r rbconfig -e "p Config::CONFIG['LIBS']"
    ruby -r rbconfig -e "p Config::CONFIG['GNU_LD']"
* if you use gcc:
    gcc --print-prog-name=ld
    gcc --print-prog-name=as
* on platforms which can use both 32bit/64bit binaries:
    file $ORACLE_HOME/bin/oracle
    file `which ruby`
    echo $LD_LIBRARY_PATH
    echo $LIBPATH      # AIX
    echo $SHLIB_PATH   # HP-UX
------------------ error message ------------------
Could not compile with Oracle instant client.
You may need to set:
    DYLD_LIBRARY_PATH=/usr/local/oracle/instantclient10_1/

---------------------------------------------------
/Users/brian/Desktop/ruby-oci8-0.1.13/ext/oci8/oraconf.rb:575:in
`check_instant_client': RuntimeError (RuntimeError)
        from
/Users/brian/Desktop/ruby-oci8-0.1.13/ext/oci8/oraconf.rb:107:in
`initialize'
        from
/Users/brian/Desktop/ruby-oci8-0.1.13/ext/oci8/extconf.rb:6:in `new'
        from
/Users/brian/Desktop/ruby-oci8-0.1.13/ext/oci8/extconf.rb:6
'system /usr/bin/ruby
/Users/brian/Desktop/ruby-oci8-0.1.13/ext/oci8/extconf.rb
--with-instant-client=/usr/local/oracle/instantclient10_1/' failed
Try 'ruby setup.rb --help' for detailed usage.



I tried following the hints it gave there, including updating
oraconf.rb, setting DYLD_LIBRARY_PATH. Any ideas?
6ece05caebbfa91944047629101bc5ea?d=identicon&s=25 KUBO Takehiro (Guest)
on 2006-02-14 15:13
(Received via mailing list)
Hi,

brian.donovan@gmail.com writes:

> I am trying to get Rails to work with an Oracle database running
> remotely. Rails will run on Mac OS X. I'm trying to follow the
> directions at
> http://creativi.st/blog/articles/2005/06/25/rails-...,
> but I get stuck at step 8 (test connection to database). When I try go
> on and install the ruby-oci8 bindings, I get this output when trying to
> config:
(snip)

Please post the last 100 lines of ext/oci8/mkmf.log and the results of
the following commands.

   ruby -r rbconfig -e "p Config::CONFIG['host']"
   ruby -r rbconfig -e "p Config::CONFIG['CC']"
   ruby -r rbconfig -e "p Config::CONFIG['CFLAGS']"
   ruby -r rbconfig -e "p Config::CONFIG['LDSHARED']"
   ruby -r rbconfig -e "p Config::CONFIG['LDFLAGS']"
   ruby -r rbconfig -e "p Config::CONFIG['LIBS']"
   ruby -r rbconfig -e "p Config::CONFIG['GNU_LD']"
This topic is locked and can not be replied to.