Talk:JRuby on Rails
From JRubyWiki
I had a couple of problems installing Jruby/Rails on Ubuntu. Here's what I had to change:
1) $JRUBY_HOME/bin/gem line 1, remove:
' -J-Xmx512M'
2) Install gem 'jruby-openssl'.
3) $JRUBY_HOME/bin/rails line 1 add:
"/usr/bin/env "
after the !.
4) Add this line to database.yml:
'host: localhost'
thread.so load error trying to install rails for jruby
Environment: Ubuntu Gusty. Already have ruby (1.8.6) and rails installed. Installed JRuby 1.1RC1, when running gems install rails -y --no-ri --no-rdoc, get this error:
thread.rb:35:in `require': No such file to load -- thread.so (LoadError)
from thread.rb:35
from /home/fwu/apps/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems.rb:11:in `require'
from /home/fwu/apps/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems.rb:11
from :-1:in `require'
from :-1
Newbie to Ruby and JRuby here. Any help is appreciated.
[Update] Solved. It must be some permission problem(s). I deleted exiting jruby installation, then unzip with gzip first, then decompressed the tar ball with tar -xpf command. Installation then worked with no problem. Originally I did tar -xzf with the downloaded .tar.gz file, could be that some permissions are messed up with that command.

