Install Scala 2.9.1 on Ubuntu 11.04!
I have been meaning to try out Scala for some time. I came across Scala when Wired reported that Twitter was replacing much of Ruby code in the server side with Scala, Scala is definately gaining more traction thanks to notable players such as Foursquare, LinkedIn and Novell announcing that they use Scala. First thing's first. We should install Scala on the computer.
As of November 3, 2011, the latest stable build is Scala 2.9.1. We will install this version of Scala.
wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1.final-installer.jar
sudo java -jar scala-2.9.1.final-installer.jar
The default location of installation is /usr/local/scala, so after installaion, set PATH like this.
PATH="$PATH:/usr/local/scala/bin"
To permanently include Scala into your PATH, open .bashrc in your /home/yourname directory and add this line.
export PATH=/path/to/dir:$PATH
You are ready to use Scala commands!
scala -versionScala code runner version 2.9.1.final -- Copyright 2002-2011, LAMP/EPFL
If you see that result, you have installed Scala on Ubuntu 11.04 successfully.