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™
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?