Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 96673
BY: Palak Mody (prmody)
DATE: 2011-06-23 20:29
SUBJECT: Error installing ruby-oci8-2.0.6.gem

 

I am new to with Ruby. See below the event flow. Let me know what do I need to do to remove the error. Thanks.


C:\INSTAN~1>CD C:\InstantRails

C:\InstantRails>PATH C:\InstantRails\ruby\bin;C:\InstantRails\mysql\bin;C:\Ruby\
bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Wind
ows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Prog
ram Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Micr
osoft SQL Server\100\DTS\Binn\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\P
rogram Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\ZipGeniu
s 6\;C:\Program Files (x86)\QuickTime\QTSystem\;as-install-parent/bin;as-install
/bin;c:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files
\jEdit;C:\INSTAN~1\ruby\bin;C:\INSTAN~1\Apache;C:\INSTAN~1\PHP

C:\InstantRails>cd rails_apps

C:\InstantRails\rails_apps>dir
Volume in drive C has no label.
Volume Serial Number is 3A27-CDF3

Directory of C:\InstantRails\rails_apps

06/22/2011 11:52 AM <DIR> .
06/22/2011 11:52 AM <DIR> ..
06/22/2011 11:52 AM <DIR> .metadata
06/22/2011 11:52 AM <DIR> cookbook
06/22/2011 11:52 AM <DIR> typo-2.6.0
0 File(s) 0 bytes
5 Dir(s) 223,922,688,000 bytes free

C:\InstantRails\rails_apps>gem

RubyGems is a sophisticated package manager for Ruby. This is a
basic help message containing pointers to more information.

Usage:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]

Examples:
gem install rake
gem list --local
gem build package.gemspec
gem help install

Further help:
gem help commands list all 'gem' commands
gem help examples show some examples of usage
gem help platforms show information about platforms
gem help <COMMAND> show help on COMMAND
(e.g. 'gem help install')
Further information:
http://rubygems.rubyforge.org

C:\InstantRails\rails_apps>cd/

C:\>cd downloads

C:\Downloads>cd ruby

C:\Downloads\Ruby>cd oracle driver

C:\Downloads\Ruby\Oracle Driver>dir
Volume in drive C has no label.
Volume Serial Number is 3A27-CDF3

Directory of C:\Downloads\Ruby\Oracle Driver

06/22/2011 02:24 PM <DIR> .
06/22/2011 02:24 PM <DIR> ..
06/22/2011 02:22 PM 200,704 ruby-oci8-2.0.6.gem
1 File(s) 200,704 bytes
2 Dir(s) 223,922,933,760 bytes free

C:\Downloads\Ruby\Oracle Driver>gem install ruby-oci8-2.0.6.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-2.0.6.gem:
ERROR: Failed to build gem native extension.

C:/InstantRails/ruby/bin/ruby.exe extconf.rb install ruby-oci8-2.0.6.gem
checking for load library path...
PATH...
checking C:\InstantRails\ruby\bin... no
checking C:\InstantRails\mysql\bin... no
checking C:\Ruby\bin... no
checking C:\oraclexe\app\oracle\product\10.2.0\server\bin... yes
C:/oraclexe/app/oracle/product/10.2.0/server/bin/oci.dll looks like a full cli
ent.
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
--srcdir=.
--curdir
--ruby=C:/InstantRails/ruby/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:591:in `check_cc': RuntimeError (RuntimeError)
from ./oraconf.rb:578:in `init'
from ./oraconf.rb:709:in `initialize'
from ./oraconf.rb:345:in `new'
from ./oraconf.rb:345:in `get'
from extconf.rb:18
ng
---------------------------------------------------
Error Message:
C compiler doesn't work correctly.
Backtrace:
./oraconf.rb:591:in `check_cc'
./oraconf.rb:578:in `init'
./oraconf.rb:709:in `initialize'
./oraconf.rb:345:in `new'
./oraconf.rb:345:in `get'
extconf.rb:18
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html



Gem files will remain installed in C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/r
uby-oci8-2.0.6 for inspection.
Results logged to C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-2.0.6/ex
t/oci8/gem_make.out

C:\Downloads\Ruby\Oracle Driver>ruby

^C
C:\Downloads\Ruby\Oracle Driver>gem

RubyGems is a sophisticated package manager for Ruby. This is a
basic help message containing pointers to more information.

Usage:
gem -h/--help
gem -v/--version
gem command [arguments...] [options...]

Examples:
gem install rake
gem list --local
gem build package.gemspec
gem help install

Further help:
gem help commands list all 'gem' commands
gem help examples show some examples of usage
gem help platforms show information about platforms
gem help <COMMAND> show help on COMMAND
(e.g. 'gem help install')
Further information:
http://rubygems.rubyforge.org

C:\Downloads\Ruby\Oracle Driver>gem install ruby-oci8-2.0.6.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-2.0.6.gem:
ERROR: Failed to build gem native extension.

C:/InstantRails/ruby/bin/ruby.exe extconf.rb install ruby-oci8-2.0.6.gem
checking for load library path...
PATH...
checking C:\InstantRails\ruby\bin... no
checking C:\InstantRails\mysql\bin... no
checking C:\Ruby\bin... no
checking C:\oraclexe\app\oracle\product\10.2.0\server\bin... yes
C:/oraclexe/app/oracle/product/10.2.0/server/bin/oci.dll looks like a full cli
ent.
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
--srcdir=.
--curdir
--ruby=C:/InstantRails/ruby/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:591:in `check_cc': RuntimeError (RuntimeError)
from ./oraconf.rb:578:in `init'
from ./oraconf.rb:709:in `initialize'
from ./oraconf.rb:345:in `new'
from ./oraconf.rb:345:in `get'
from extconf.rb:18
ng
---------------------------------------------------
Error Message:
C compiler doesn't work correctly.
Backtrace:
./oraconf.rb:591:in `check_cc'
./oraconf.rb:578:in `init'
./oraconf.rb:709:in `initialize'
./oraconf.rb:345:in `new'
./oraconf.rb:345:in `get'
extconf.rb:18
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html



Gem files will remain installed in C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/r
uby-oci8-2.0.6 for inspection.
Results logged to C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-2.0.6/ex
t/oci8/gem_make.out

C:\Downloads\Ruby\Oracle Driver>


Thread View

Thread Author Date
Error installing ruby-oci8-2.0.6.gemPalak Mody2011-06-23 20:29
      RE: Error installing ruby-oci8-2.0.6.gemKubo Takehiro2011-06-24 10:55

Post a followup to this message