8 Replies Latest reply on Sep 13, 2010 11:21 PM by 797593

    Oracle drivers for Ruby1.9.1

      Did anyone get an oracle driver with ruby1.9.1 installed? Or is there simply no support at this point in time?
        • 1. Re: Oracle drivers for Ruby1.9.1

          Use Oracle enhanced adapter on Ruby 1.9.1 with ruby-oci8 2.0 library or gem

          ruby-oci8 2.0 is available

          C:\> gem install ruby-oci8 -v 2.0.3

          gem install activerecord-oracle_enahnced-adapter

          • 2. Re: Oracle drivers for Ruby1.9.1
            I can't get the ruby-oci8 gem to install on my windows machine.
            It seems to be looking for a c compiler (cc)
            (Which I do not have)

            Any suggestions?

            • 3. Re: Oracle drivers for Ruby1.9.1
              Did you install Ruby 1.9.1 from http://www.rubyinstaller.org/download.html ?

              And did you install Development Kit (which includes compilers for native extensions)?

              If yes then what kind of errors are you getting?
              • 4. Re: Oracle drivers for Ruby1.9.1
                Yes, I got the Ruby from http://www.rubyinstaller.org/download.html
                I did not get the Dev Kit, can you give me the URL?
                That might be the missing link...

                C:\Ruby19\lib\ruby\gems\1.9.1\gems\ruby-oci8-2.0.3>setup.rb config
                ---> lib
                ---> lib/dbd
                <--- lib/dbd
                ---> lib/oci8
                <--- lib/oci8
                <--- lib
                ---> ext
                ---> ext/oci8
                c:/ruby/bin/ruby C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/extconf.rb
                checking for load library path...
                checking c:\ruby19\bin... no
                checking C:\WINDOWS\system32... no
                checking C:\WINDOWS... no
                checking C:\WINDOWS\System32\Wbem... no
                checking C:\Program Files\ATI Technologies\ATI Control Panel... no
                checking C:\Program Files\Oracle\Instant... yes
                C:/Program Files/Oracle/Instant/oci.dll looks like an instant client.
                checking for cc... ng
                Error Message:
                C compiler doesn't work correctly.
                C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:562:in `check_cc'
                C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:549:in `init'
                C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:1001:in `initialize'
                C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:343:in `new'
                C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:343:in `get'
                * http://ruby-oci8.rubyforge.org/en/HowToInstall.html
                * http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html

                *** C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/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:
                C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:562:in `check_cc': RuntimeError (RuntimeError)
                from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:549:in `init'
                from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:1001:in `initialize'
                from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:343:in `new'
                from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/oraconf.rb:343:in `get'
                from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/extconf.rb:18
                'system c:/ruby/bin/ruby C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/ext/oci8/extconf.rb ' failed
                Try 'ruby C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.3/setup.rb --help' for detailed usage.


                • 5. Re: Oracle drivers for Ruby1.9.1
                  I installed the RubyInstaller DevKit including the mod to fstab.
                  Still gets to the checking for cc...
                  and reports ng (presumably, not good)
                  • 6. Re: Oracle drivers for Ruby1.9.1
                    Try to describe your problem in ruby-oci8 discussion forum http://rubyforge.org/forum/forum.php?forum_id=1078

                    Probably ruby-oci8 author can answer what is the issue.
                    • 7. Re: Oracle drivers for Ruby1.9.1
                      Install the ruby gem with
                      C:\> gem install ruby-oci8 -v 2.0.3

                      What is the error message?
                      • 8. Re: Oracle drivers for Ruby1.9.1
                        I'm using ruby-oci8-2.0.4 version. When i install this gem i'm getting the same error mentioned above. Help please