Just to let everyone know. This problem has been FIXED. Here is what I did: 1. install Sun Studio 12.1 2. edited rbconfig.rb and included path of sun's "cc" compiler that came with Sun Studio. and then it started working fine.
On Sep 17, 11:22 am, catel1 <[email protected]> wrote: > Thanks for your reply. I installed Sun Studio 12 and put it in path. > But I still get the same error message > ******************************************************* > bash-3.00$ pwd > /export/home/roradmin1/ruby-oci8-1.0.6 > bash-3.00$ ruby setup.rb config > ---> lib > ---> lib/dbd > <--- lib/dbd > <--- lib > ---> ext > ---> ext/oci8 > /opt/coolstack/bin/ruby /export/home/roradmin1/ruby-oci8-1.0.6/ext/ > oci8/extconf.rb > setup.rb:476: warning: Insecure world writable dir /opt/coolstack/lib/ > ruby in PATH, mode 040777 > checking for load library path... > LD_LIBRARY_PATH_32... > checking /usr/local/ssl/lib/... no > checking /usr/local/lib/... no > checking /export/home/roradmin1/oracle/instantclient_11_1... yes > /export/home/roradmin1/oracle/instantclient_11_1/libclntsh.so.11.1 > looks like an instant client. > checking for cc... 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 > > *** /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/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=/export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8 > --curdir > --ruby=/opt/coolstack/bin/ruby > --with-instant-client > --without-instant-client > /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/oraconf.rb:557:in > `check_cc': RuntimeError (RuntimeError) > from /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/ > oraconf.rb:544:in `init' > from /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/ > oraconf.rb:972:in `initialize' > from /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/ > oraconf.rb:343:in `new' > from /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/ > oraconf.rb:343:in `get' > from /export/home/roradmin1/ruby-oci8-1.0.6/ext/oci8/ > extconf.rb:24 > 'system /opt/coolstack/bin/ruby /export/home/roradmin1/ruby-oci8-1.0.6/ > ext/oci8/extconf.rb ' failed > Try 'ruby setup.rb --help' for detailed usage. > bash-3.00$ > *************END ERROR MESSAGE************************ > > So, > 1. it does find oracle instant client in export/home/roradmin1/oracle/ > instantclient_11_1 > 2. it still complains about cc compiler (I have tried gcc as well) > > I am close to committing suicide! Can anyone help me with this? > > Thanks > > On Sep 16, 4:17 pm, Greg Donald <[email protected]> wrote: > > > On Wed, Sep 16, 2009 at 3: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 tooracledb (through network). > > > From what I understand, it requires three steps: > > > Step 1: Installoracleinstant 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... > > > checking for cc... *** extconf.rb failed *** > > > This is because you're missing Ruby dev libraries. > > > In my setup I have these set: > > > LD_LIBRARY_PATH=/usr/local/lib > > ORACLE_HOME=/home/oracle > > > > C compiler doesn't work correctly. > > > Looks like you need a compiler too. > > > -- > > Greg Donaldhttp://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

