Sha256: db6b31cd0d406368a7476ff7583fef19231a0af8fdf1fdfbc24ca0054bc78325
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 KB
Contents
--- layout: post title: "Installing JRuby" date: 2018-05-24 07:34:13 categories: PiCrate update permalink: /install_jruby/ --- ### Manual install ### Pure jruby installation on raspbian no need for `rbenv` or `rvm` or existing ruby. Get the latest version from [http://jruby.org/download][download] ```bash cd /opt sudo tar xzvf /pathToDownload/jruby-bin-9.3.0.0.tar.gz ``` Then use the excellent `update-alternatives` tool to provide symbolic links to `jruby`, `jgem`, `jirb` and `rake` especially if you haven't installed `mri` ruby. ```bash sudo update-alternatives --install /usr/bin/jruby jruby /opt/jruby{version}/bin/jruby 100 sudo update-alternatives --config jruby ``` ### GEM_HOME ### You should prefer to install gems locally (no need for sudo). To do that it is convenient on linux to edit your `~/.profile` (or equivalent eg `~./bashrc`) file as follows, the important thing is ensure that the gem bin directory is on your path. ```bash alias jpry="jruby -e \"require 'pry'; binding.pry\"" # export JAVA_HOME="/opt/jdk1.8.0_151" # if using oracle java openjdk-8 is fine though export GEM_HOME="$HOME/.gem/ruby/2.6.0" export GEM_PATH="$HOME/tux/.gem/ruby/2.6.0" export PATH="${PATH}:${GEM_PATH}/bin" ``` ### Automated install using bash ### The [picrate2_install.sh][bash] script currently installs jruby-9.3.0.0 and picrate-2.5.0. If you know better please post on wiki [download]:"https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.3.0.0/jruby-dist-9.3.0.0-bin.tar.gz" [bash]:https://gist.github.com/monkstone/6ae9840d7b7008c177b4a9f589d14ec6
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picrate-2.5.0-java | docs/_posts/2018-05-06-install_jruby.md |