Gem installation issue

Sophia's Avatar

Sophia

24 Jul, 2012 12:07 PM

I am trying to use Cucumber and so Im installing some gems.Im facing problems in installing the following gems:

BigDecimal-1.1.0.gem
io-console-0.3.gem

I use Ruby1.8.7
My current Gem list

builder (3.0.0)
commonwatir (1.9.0)
cucumber (1.2.1)
diff-lcs (1.1.3)
ffi (1.1.0.rc4 x86-mingw32)
firewatir (1.9.0)
gherkin (2.11.1 ruby x86-mswin32)
hoe (3.0.6)
json (1.5.4, 1.5.0, 1.4.5 java)
minitest (2.5.1)
nokogiri (1.5.5 x86-mingw32)
rake (0.9.2.2)
rautomation (0.7.2)
rdoc (3.9.4)
rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.1)
rspec-mocks (2.11.1)
s4t-utils (1.0.4)
user-choices (1.1.6.1)
watir (1.9.0)
win32-api (1.4.8 x86-mingw32)
win32-process (0.6.5)
windows-api (0.4.1)
windows-pr (1.2.1)
xml-simple (1.1.1)

C:\Ruby187\bin>gem install --local bigdecimal-1.1.0.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bigdecimal-1.1.0.gem:

    ERROR: Failed to build gem native extension.
    C:/Ruby187/bin/ruby.exe extconf.rb

checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile
make
gcc -I. -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_LABS -DHAVE_LLABS -g -O2 -DFD_SETSIZE=256 -c bigdecimal.c
In file included from bigdecimal.c:20:0:
bigdecimal.h:19:23: fatal error: ruby/ruby.h: No such file or directory
compilation terminated.
make: *** [bigdecimal.o] Error 1
Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/bigdecimal-1.1.0 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/bigdecimal-1.1.0/./gem_make.out

C:\Ruby187\bin>gem install --local io-console-0.3.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing io-console-0.3.gem:

    ERROR: Failed to build gem native extension.
    C:/Ruby187/bin/ruby.exe extconf.rb

checking for rb_w32_map_errno() in ruby.h... yes
checking for sys/ioctl.h... no
checking for rb_io_get_write_io() in ruby/io.h... no
checking for dup3() in unistd.h... no
creating Makefile
make
gcc -I. -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_RB_W32_MAP_ERRNO
-g -O2 -DFD_SETSIZE=256 -c console.c console.c: In function 'console_dev':
console.c:584:6: error: 'rb_io_t' has no member named 'pathv'
make: *** [console.o] Error 1
Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/io-console-0.3 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/io-console-0.3/./gem_make.out

Please help!!!

  1. Support Staff 1 Posted by Luis Lavena on 24 Jul, 2012 01:00 PM

    Luis Lavena's Avatar

    Sophia,

    help.rubygems.org is a support forum for RubyGems and rubygems.org website, and not a general support forum for gem installation issues.

    The list of gems you're trying to install (io-console, bigdecimal) are gems meant for Ruby 1.9.2 and newer and NOT Ruby 1.8.7

    io-console is a functionality only for Ruby 1.9.3 and BigDecimal is part of Ruby.

    I don't understand why you need to install those since is not listed as part of Cucumber gem requirements or any of its dependencies.

    I guess you're trying to install the gems for a project that was created with Ruby 1.9.3 in mind but using Ruby 1.8.7, which will not work.

    I'm closing this out since this is not related to help.rubygems.org or RubyGems itself.

  2. Luis Lavena closed this discussion on 24 Jul, 2012 01:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac