From: Charles Oliver Nutter Date: 2011-07-15T17:59:20+09:00 Subject: Re: jruby and jgem problem I cannot reproduce this. This is JRuby master, but should not be substantially different from 1.6.x: ~/projects/jruby $ gem install gherkin Successfully installed gherkin-2.4.5-java 1 gem installed ~/projects/jruby $ jruby -rubygems -e "require 'gherkin'; puts 'ok'" ok Are you sure you're running the same JRuby version in each case? Pass -v and confirm it maybe? - Charlie On Tue, Jul 12, 2011 at 5:30 AM, salamond wrote: > Hi, all. > > I'm using Jruby for the first time. and met the gem problem. > > First, I install jruby. > # jruby -v > jruby 1.6.3 (ruby-1.8.7-p330) (2011-07-07 965162f) (Java HotSpot(TM) > Client VM 1.6.0_14) [linux-i386-java] > > Then I use jgem to install several ruby gems. > > # jgem list --local > *** LOCAL GEMS *** > cucumber (1.0.1) > cuke4duke (0.4.4) > diff-lcs (1.1.2) > gherkin (2.4.5) > json (1.5.1) > rake (0.8.7) > sources (0.0.1) > term-ansicolor (1.0.5) > > Then the problems come: > I can require json, but I can not require 'gherkin' > > # jruby -e "require 'rubygems';require 'json'" > # > > # jruby -e "require 'rubygems';require 'gherkin'" > LoadError: no such file to load -- gherkin > > > This cause me failed to run "cuke4duke" > > Any one met this error before? > >