[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing ruby-oci8 on Mac OS X for Rails

brian.donovan

2/13/2006 6:26:00 PM

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-o...,
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_wit...

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?

1 Answer

KUBO Takehiro

2/14/2006 12:43:00 PM

0

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-oracle-client-o...,
> 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: kubo@jiubao.org
web: http://www....
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262