Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Installing ruby-oci8 on Mac OS X for Rails

5 views
Skip to first unread message

brian....@gmail.com

unread,
Feb 13, 2006, 1:25:49 PM2/13/06
to
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-oracle-client-on-mac-os-x,
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/ext/oci8/oraconf.rb?cvsroot=ruby-oci8&only_with_tag=MAIN

If it could not be solved, send the following information to
ku...@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?

KUBO Takehiro

unread,
Feb 14, 2006, 7:43:14 AM2/14/06
to
Hi,

brian....@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-oracle-client-on-mac-os-x,
> 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']"

--
KUBO Takehiro
email: ku...@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262


Stephen Waits

unread,
Feb 14, 2006, 11:10:02 AM2/14/06
to

Hi Brian,

Thanks for your message about Ruby on Rails. I think you'll find
that you're likely to get a quicker and more accurate response to
your message on the Ruby on Rails specific mailing list.

For subscription and posting information, please visit the Rails
mailing list page at:

http://lists.rubyonrails.org/mailman/listinfo/rails

Sincerely,
Steve


David Vallner

unread,
Feb 14, 2006, 3:50:50 PM2/14/06
to
Dňa Utorok 14 Február 2006 17:10 Stephen Waits napísal:

Hmm... Do you have an autoreply script for this? The question was about
ruby-oci8, not Rails ;)

David Vallner


0 new messages