Hi Can you use RSpec 1.1.9 on JRuby? Now it depends on spicycode-rcov, I can''t install it: # jgem install rspec --development Building native extensions. This could take a while... ERROR: Error installing rspec: ERROR: Failed to build gem native extension. /opt/local/share/java/jruby/bin/jruby extconf.rb install rspec -- development Gem files will remain installed in /opt/local/share/java/jruby/lib/ ruby/gems/1.8/gems/spicycode-rcov-0.8.1.3.0 for inspection. Results logged to /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/ spicycode-rcov-0.8.1.3.0/ext/rcovrt/gem_make.out Thanks Ashley -- http://www.patchspace.co.uk/ http://aviewfromafar.net/
On Thu, Oct 23, 2008 at 7:43 AM, Ashley Moran <ashley.moran at patchspace.co.uk> wrote:> Hi > > Can you use RSpec 1.1.9 on JRuby? Now it depends on spicycode-rcov, I can''t > install it: > > # jgem install rspec --development > Building native extensions. This could take a while... > ERROR: Error installing rspec: > ERROR: Failed to build gem native extension. > > /opt/local/share/java/jruby/bin/jruby extconf.rb install rspec --development > > > Gem files will remain installed in > /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/spicycode-rcov-0.8.1.3.0 > for inspection. > Results logged to > /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/spicycode-rcov-0.8.1.3.0/ext/rcovrt/gem_make.outFor rspec-1.1.9 you have to be on rubygems 1.3 to avoid those dependencies (as they are developer deps and I just used hoe to create the gemspec, which makes them normal deps for rubygems <= 1.2). I''ll make sure that dep is not there for the next rspec release, but in the mean time, upgrading to rubygems 1.3 and reinstalling rspec will solve your problem. That assumes that there is a jgem-1.3. If not, you can probably do this: git clone git://github.com/dchelimsky/rspec.git git co 1.1.9 Then modify rspec.gemspec to eliminate the dependency and build the gem locally: jgem build rspec.gemspec jgem install pkg/rspec-1.1.9.gem HTH, David> > Thanks > Ashley > > -- > http://www.patchspace.co.uk/ > http://aviewfromafar.net/ > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Oct 23, 2008, at 2:58 pm, David Chelimsky wrote:> For rspec-1.1.9 you have to be on rubygems 1.3 to avoid those > dependencies (as they are developer deps and I just used hoe to create > the gemspec, which makes them normal deps for rubygems <= 1.2). > > I''ll make sure that dep is not there for the next rspec release, but > in the mean time, upgrading to rubygems 1.3 and reinstalling rspec > will solve your problem. That assumes that there is a jgem-1.3. If > not, you can probably do this: > > git clone git://github.com/dchelimsky/rspec.git > git co 1.1.9 > > Then modify rspec.gemspec to eliminate the dependency and build the > gem locally: > > jgem build rspec.gemspec > jgem install pkg/rspec-1.1.9.gem > > HTH, > DavidHi David Thanks for the explanation. I can live with 1.1.8 in the meantime: I only need it for Cucumber+Celerity, so I won''t be doing anything complex in JRuby. I assume the next JRuby release will include RubyGems 1.3. Cheers Ashley -- http://www.patchspace.co.uk/ http://aviewfromafar.net/