I'm trying to build the ruby-oci8 with the Oracle Instant Client on OS
X. The Instant Client works, and the make seems to be ok with it up
until OCIInitialize(). Anybody got this to work?
[relevant output]
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby /
Users/dmholmes/Desktop/ruby-oci8-1.0.0-rc2/ext/oci8/extconf.rb
checking for load library path... (DYLD_LIBRARY_PATH)... /opt/oracle/
instantclient10_1/libclntsh.dylib.10.1 looks like an instant client.
checking for cc... ok
checking for gcc... yes
checking for LP64... no
checking for ruby header... ok
checking for OCIInitialize() in oci.h... no
First, in mkmf.log I had:
ld: warning in /opt/oracle/instantclient10_1/libclntsh.dylib, file is
not of required architecture
Undefined symbols for architecture i386:
I'm running Leopard on a G5, so something picked up the architecture
wrong. Above that I see GCC being called with "-arch ppc -arch i386".
I found where that was being supplied in the Makefile and removed it
(after setup.rb.config but before setup.rb setup).