RSpec Gem does not seem to install dependencies

cucumberjrubyrspecrubyrubygems

$> jruby -v

jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [x86-java]

$> gem install rspec

JRuby limited openss loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Succesfully installed rspec-1.1.12
1 gem installed
Installing ri documentation for rspec-1.1.12…
Installing RDoc documentation for rspec-1.1.12…

$> spec –help

…/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:578:in `report_activate_error': Could not find RubyGem cucumber (>= 0.1.13) (Gem::LoadError)

from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:134: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158: in
activate'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in each
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:49: in
gem'
from …/jruby/1.1.4/bin/spec:18

$> gem install cucumber

(installed cucumber-0.1.16 and dependencies term-ansicolor-1.0.3, polyglot-0.2.5, treettop-1.2.4, diff-lcs-1.1.2)

$> spec –help

…/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:578:in `report_activate_error': Could not find RubyGem hoe (>= 1.8.0) (Gem::LoadError)

from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:134: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158: in
activate'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in each'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in
activate'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in
each'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158: in
activate'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in each'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in
activate'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:158: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in
each'
from …/jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:157: in activate'
from .../jruby/1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:49: in
gem'
from …/jruby/1.1.4/bin/spec:18

$> gem install hoe

(installed hoe-1.10.0 and dependency rubyforge-1.0.3)

$> spec –help

Usage: spec (FILE|DIRECTORY|GLOB)+ [options]
(etc., etc., etc.)

Seems like "gem install rspec" does not install the dependencies.
Not sure if it is exclusive to JRuby on Windows… other OSes not tested.

Best Answer

Did you try:

gem install rspec --development

Related Topic