-
Notifications
You must be signed in to change notification settings - Fork 2
JRuby
🚧 NEW PAGE! This is a new page, so things may change, as they are under construction.
JRuby is an implementation of the Ruby programming language using the Java Virtual Machine (JVM). So as you would imaging, before installing this, you should probably install both Ruby and Java.
🚧 This section is undergoing a rewrite.
You'll want to install Ruby using ruby-install which I had explained on my Ruby page. You will also need to install Oracle's Java Development Kit which I explaned on my Java page. And for good measure, let's install Apache Ant.
Do not install Ruby using ruby-install. It will install OpenJDK and we don't want to use that!
At first, I was under the assumption that I would need to install Apache Ant and Maven. But even the guys in the Java chatroom on Freenode though it was a dumb idea. We don't need to install [Maven](Apache Maven), even though JRuby comes with all sorts of Maven stuff. Ant is still a good idea.
Fortunately, the chruby gues have my back, and they had their own instructions. I'm just going to make some modifications, espeically since there seems to be some incorrect information, like the fact that there is no ruby in JRuby's /bin directory.
$ cd ~/Software/
$ mkdir rubies
$ sudo mv rubies /opt # This way we have permission to the /opt/rubies directory
$ cd /opt/rubies
$ curl -SL https://s3.amazonaws.com/jruby.org/downloads/9.0.5.0/jruby-bin-9.0.5.0.tar.gz | tar xvz
$ sudo vim /etc/profile.d/jruby.sh
In Vim, we create a shell script with two lines in it defining the JRuby home and the path that JRuby is at. This worked out for Java and Ruby so it is worth using for JRuby.
export JRUBY_HOME=/opt/rubies/jruby-9.0.5.0
export PATH=$JRUBY_HOME/bin:$PATH
$ jruby --version jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) Client VM 25.73-b02 on 1.8.0_73-b02 +jit [linux-arm]
## See Also
* [Java](Java)
* [Ruby](Ruby)
* [Scala](Scala)
* [Tabula](Tabula)
## JRuby Links
* http://jruby.org/
* https://github.com/jruby/jruby
## Ant and Maven Links
* https://ant.apache.org/
* https://maven.apache.org/
* https://github.com/apache/ant/
* https://github.com/apache/maven/
Setup
- [Assemble the Hardware](Assemble the Hardware)
- [Install the Software](Install the Software)
- SD Card Formatting and Image Mounting
- ❤️ [TLDR version](Install the Software#tldr)
- 🆕 [Windows version](Install the Software#doing-this-in-windows)
- 🆙 [Setup your Raspberry Pi](Setup your Raspberry Pi)
- [Download the Missing Parts](Download the Missing Parts)
- Clone this repo
- 🆕 [Install these first](Install these first)
-
Python(It's taken care of) - 🆙 CMake
- 🆙 Node
- 🆕 Expect (Tcl/Tk is not dead!)
- 🆙 tmux and ncurses
- 🆙 htop
- 🆙 wavemon
- Vim
- 🆙 Ruby
- 🆙 weechat
- 🆕 urxvt 256 color terminal!
- 🆕 i3 A better window manager
- 🆕 Ranger
- 🆙 Qt5
- 🆕 Chromium
wicd-curses- 📻 Software Defined Radio
- 🎮 [Linux Toys](Linux Toys)
Typical Utilities
- [Downloading and extracting with curl and tar](curl and tar)
- [Browsing with ls and cat](ls and cat)
- [Searching with grep and find](grep and find)
- [Filtering with sed and awk](sed and awk)
- [Piping with less, pv, and tee](less, pv, and tee)
- Monitor your system with htop
- Multiplex with tmux