I just installed RVM and after a little bit of difficulty I got it working.
But I now have a problem.
I can still run scripts and individual commands on the command line, but I
can't get an interactive shell. The jruby command just waits forever. When I
run jirb, a ton of processes called java appear, and although they use a
lot of CPU power and memory they don't appear to accomplish anything.
When I asked for help elsewhere, it was suggested that I run
jruby -rirb -e IRB.start
But that spawned about 20 java processes that consumed all the memory on my
system, and I had to abort the process.
When I run the command jruby -v I get
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on OpenJDK 64-Bit Server VM
1.6.0_30-b30 [linux-amd64]
And running rvm info yields:
jruby-1.7.2:
system:
uname: Linux linus-HP-G56-Notebook-PC 3.13.0-gnu #1 SMP Tue Jan 21
16:21:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
system: debian/wheezy_sid/x86_64
bash:/bin/bash = GNU bash, version 4.2.25(1)-release
(x86_64-pc-linux-gnu)
zsh: = not installed
rvm:
version: rvm 1.25.20 (stable) by Wayne E. Seguin , Michal Papis
[https://rvm.io/];
updated: 17 hours 49 minutes 12 seconds ago
path: /home/linus/.rvm
ruby:
interpreter: jruby
version: 1.7.2
date: jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on OpenJDK 64-Bit
Server VM 1.6.0_30-b30 [linux-amd64]
platform: linux-amd64
patchlevel: 1.9.3p327
full_version: jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on OpenJDK 64-Bit
Server VM 1.6.0_30-b30 [linux-amd64]
homes:
gem: /home/linus/.rvm/gems/jruby-1.7.2
ruby: /home/linus/.rvm/rubies/jruby-1.7.2
binaries:
ruby: /home/linus/.rvm/rubies/jruby-1.7.2/bin/ruby
irb: /home/linus/.rvm/rubies/jruby-1.7.2/bin/irb
gem: /home/linus/.rvm/rubies/jruby-1.7.2/bin/gem
rake: /home/linus/.rvm/rubies/jruby-1.7.2/bin/rake
environment:
PATH:
/home/linus/.rvm/gems/jruby-1.7.2/bin:/home/linus/.rvm/gems/jruby-1.7.2@global/bin:/home/linus/.rvm/rubies/jruby-1.7.2/bin:/home/linus/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
GEM_HOME: /home/linus/.rvm/gems/jruby-1.7.2
GEM_PATH:
/home/linus/.rvm/gems/jruby-1.7.2:/home/linus/.rvm/gems/jruby-1.7.2@global
MY_RUBY_HOME: /home/linus/.rvm/rubies/jruby-1.7.2
IRBRC:/home/linus/.rvm/rubies/jruby-1.7.2/.irbrc
RUBYOPT:
gemset: