Adding a few more languages

Our core platform is now configured with Python ( by default ), PHP ( installed ) and Java ( installed ), we also get Perl ( by default ), but I want more languages. I spend a lot of more time these days either using Ruby or Groovy and have a passing interest in Scala for its functional programming capabilities.

So lets add each of these in turn, first Ruby, the best source of information is found at RPi Ruby on Rails

sudo apt-get install ruby
sudo apt-get install rails

We can test that all is installed with 3 commands,

ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [arm-linux-eabihf]
gem -v
1.8.23
rails -v
Rails 2.3.14

Once Ruby is installed lets install a couple of key JVM languages, specifically Groovy and Scala, first Groovy

 
sudo apt-get install groovy
sudo apt-get install groovy-doc

We can check Groovy is installed by checking its version

groovy -version
Groovy Version: 1.8.6 JVM: 1.7.0_07 Vendor: Oracle Corporation OS: Linux

And now we install Scala

sudo apt-get install scala
sudo apt-get install scala-doc

Again we can check it is installed by checking its version

scala -version
Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL

Your email address will not be published. Required fields are marked *