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 --------------------------------------------------- error messages: Could not compile with Oracle instant client. You may need to set a environment variable: DYLD_LIBRARY_PATH=/opt/oracle/instantclient10_1 export DYLD_LIBRARY_PATH --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Fixed, here is what I did. 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). On Nov 2, 10:28 am, David <dmhol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 > --------------------------------------------------- > error messages: > Could not compile with Oracle instant client. > You may need to set a environment variable: > DYLD_LIBRARY_PATH=/opt/oracle/instantclient10_1 > export DYLD_LIBRARY_PATH--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 2, 2007, at 6:38 PM, David wrote:> > Fixed, here is what I did. > > 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). >i''m not sure, but you could have do the same by using variable ARCHFLAGS="-arch ppc" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
In regards to this: has anyone heard anything new about an Intel build of instant client for Oracle in the works or better yet a universal binary? On Nov 2, 1:43 pm, Fabien JAKIMOWICZ <fab...-SKT9N6NoqVlE4Z/KZFzVqg@public.gmane.org> wrote:> On Nov 2, 2007, at 6:38 PM, David wrote: > > > > > Fixed, here is what I did. > > > 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). > > i''m not sure, but you could have do the same by using variable > ARCHFLAGS="-arch ppc"--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---