Scala is a really nice JVM based programming language. This post explains how to install it to Ubuntu 12.04 LTS system. If you don’t just play with Scala console but want to start a project, then you need Simple Build Tool (sbt) installed as well.
First of all let’s get root priviledges, update packages index and install some basic must-have things:
Install Open JDK 7 and Scala:
Test from the command line:
Now you have Scala version 2.9.1, it’s not latest but for each project
you’ll have a possibility to install required version through sbt
. So
let’s go ahead and install it.
Download and install sbt-0.13:
Now you have sbt
available from the command line. It’s time to return to
your normal user login because sbt creates separate scala instances
for each username. Next ask sbt to show scala console: sbt console
. It
will force sbt to download and deploy scala-2.10.2 which is default for
sbt-0.13.
That’s it, enjoy your day with Scala and sbt!