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
./oraconf.rb:557:in `check_cc': RuntimeError (RuntimeError)
        from ./oraconf.rb:544:in `init'
        from ./oraconf.rb:674:in `initialize'
        from ./oraconf.rb:345:in `new'
        from ./oraconf.rb:345:in `get'
        from extconf.rb:17
ng
---------------------------------------------------
error messages:
C compiler doesn't work correctly.
---------------------------------------------------
See:
 * http://ruby-oci8.rubyforge.org/en/HowToInstall.html
 * http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html



Gem files will remain installed in /opt/coolstack/lib/ruby/gems/1.8/
gems/ruby-oci8-2.0.2 for inspection.
Results logged to /opt/coolstack/lib/ruby/gems/1.8/gems/ruby-
oci8-2.0.2/ext/oci8/gem_make.out
***********END ERROR MESSAGE***************
I already have gcc on the system. Here is my PATH:

bash-3.00$ echo $PATH
/export/home/roradmin1/bin:/usr/local/bin:/usr/bin:/etc:/opt/EMCpower/
bin/sparcv9:/etc/emc/bin:/usr/local/bin/:/opt/coolstack/bin:/usr/sfw/
bin:/usr/ucb:/usr/local/bin/:/opt/coolstack/bin:/usr/sfw/bin:/usr/ucb:/
opt/coolstack/lib/ruby:/opt/coolstack/lib:/export/home/roradmin1/.gem/
ruby/1.8/bin

bash-3.00$ echo $LD_LIBRARY_PATH
/usr/local/ssl/lib/:/usr/local/lib/:/export/home/roradmin1/oracle/
instantclient_11_1
bash-3.00$

bash-3.00$ echo $LD_LIBRARY_PATH_32
/usr/local/ssl/lib/:/usr/local/lib/:/export/home/roradmin1/oracle/
instantclient_11_1

Can you please help? I am new to UNIX and don't have full root access
so I am pulling my hair out right now.

Thanks.

--~--~---------~--~----~------------~-------~--~----~
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