Sorry, what did you mean by this?
**
Does it work if you try "sudo gem install ruby-oci -- --with-instant-
client" ?
**

sudo gem install ruby-oci -- --with-instant-client
(Is the syntax correct? I get error when I paste it as it is)
Also, I think when I do "sudo", the path information is not passed.

Thanks
Catel

On Sep 16, 3:22 pm, Daniel Berger <[email protected]> wrote:
> On Sep 16, 2:05 pm, catel1 <[email protected]> wrote:
>
>
>
> > My company's System-admin installed Ruby and Gems (using Sun Coolstack
> > package) and I have sudo access to ruby, gem etc. Now I need to get my
> > app to talk to oracle db (through network).
> > From what I understand, it requires three steps:
> > Step 1: Install oracle instant client ( I installed it in my ~/oracle/
> > instantclient_11_1)
> > Step2: Install OCI8 libraries (this is where I am stuck). Here is the
> > error message:
> > ***********ERROR MESSAGE***************
>
> > bash-3.00$ sudo gem install ruby-oci8
> > Building native extensions.  This could take a while...
> > ERROR:  Error installing ruby-oci8:
> >         ERROR: Failed to build gem native extension.
>
> > /opt/coolstack/bin/ruby extconf.rb
> > checking for load library path...
> >   LD_LIBRARY_PATH_32 is not set.
> >   LD_LIBRARY_PATH is not set.
> > checking for cc... *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers.  Check the mkmf.log file for more
> > details.  You may need configuration options.
>
> > Provided configuration options:
> >         --with-opt-dir
> >         --without-opt-dir
> >         --with-opt-include
> >         --without-opt-include=${opt-dir}/include
> >         --with-opt-lib
> >         --without-opt-lib=${opt-dir}/lib
> >         --with-make-prog
> >         --without-make-prog
> >         --srcdir=.
> >         --curdir
> >         --ruby=/opt/coolstack/bin/ruby
> >         --with-instant-client
> >         --without-instant-client
>
> <snip>
>
> Does it work if you try "sudo gem install ruby-oci -- --with-instant-
> client" ?
>
> If not, try setting $ORACLE_HOME to wherever you installed the instant
> client and try again.
>
> If that still doesn't work, this blog post may be of interest:
>
> http://ktulu.com.ar/blog/2009/01/30/installing-ruby-oci8-with-oracle-...
>
> (In short, it looks like the directory layout changed in 11g)
>
> Regards,
>
> Dan
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to