Installing JRuby 1.6.7 + Rails 3 with Ubuntu?

Any blog or tutorial on installing JRuby 1.6.7 and Rails 3 on Ubuntu?

+4
source share
2 answers

Install rvm first :

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) $ source ~/.bash_profile 

Once rvm is installed, use it to install jruby:

 $ rvm install jruby-1.6.7 

Then you can use this version:

 $ rvm use jruby-1.6.7 

Finally, install the rails:

 $ jruby -S gem install rails 

Update

In later versions of rvm, installing the latest version of jruby and rails is very simple :

 $ \curl -L https://get.rvm.io | bash -s stable --autolibs=3 --ruby=jruby --gems=rails 
+6
source

Use the package manager:

 sudo apt-get install ruby-rvm 
+1
source

Source: https://habr.com/ru/post/1403481/


All Articles