sudo jruby -S gem list --local
*** LOCAL GEMS ***
sources (0.0.1)
$ which jruby
/usr/bin/jruby
$ ll /usr/bin/jruby
lrwxrwxrwx 1 root root 23 2012-06-29 21:30 /usr/bin/jruby -> /etc/alternatives/jruby*
$ ruby helloWorld.rb
helloWorld.rb:3:in `require': no such file to load -- java (LoadError)
from helloWorld.rb:3
$ jruby helloWorld.rb
helloWorld.rb:4:in `require': no such file to load -- peach (LoadError)
from helloWorld.rb:4
$ gem query
*** LOCAL GEMS ***
#helloWorld.rb
require 'yaml'
require 'java'
require 'peach'
puts 'hello world'
#dataset = ENV['DATASET']
#puts "dataset " + dataset
No comments:
Post a Comment