To install Scala on Linux you need to get scala on your Linux machine. You can get Scala by below two methods :
1) Default Scala version available on your Linux box by typing below command
sudo apt-get install scala2) If you want to get the latest version of the scala below are the steps
a) Download latest IzPack Installer for linux as shown below
wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1.final-installer.jarb) For installing the downloaded package we need to decide the location of installation. I have selected /opt/scala. If you decide to select same location please make sure you have created /opt/scala. You can use below command to create directory.
sudo mkdir /opt/scalac) Start installation by typing below command
sudo java -jar scala-2.9.1.final-installer.jard) You will get some welcome message and you will be asked to enter 1 to continue. You can enter 1 for installation.
e) In next step you will be asked to accept license. You can accept license by entering 1.
f) Next step will be selecting target directory for installation. Enter below path for installation.
/opt/scalag) Next press 1 to continue
h) You will get below message on the shell.
Console Installation Completedi) Set Scala installation path as below
PATH="$PATH:/opt/scala/bin"Congratulation!!! You have successfully installed Scala on your Linux. To check the scala you can type below command
scala -versionYou will get below message
Scala code runner version 2.9.1.final -- Copyright 2002-2011, LAMP/EPFL

This is not Ubuntu style installation (I mean about second case). You should read this post for jdk7 http://askubuntu.com/questions/55848/how-do-i-install-oracle-jdk-7
This is not Ubuntu style installation (I mean about second case). You should read this post for jdk7 http://askubuntu.com/questions/55848/how-do-i-install-oracle-jdk-7
@Vasya – Thanks for pointing out this. I will go through Ubuntu style installatin steps for JDK7 and accordingly i will update my post to include Ubuntu style Scala installation.
@Vasya – Thanks for pointing out this. I will go through Ubuntu style installatin steps for JDK7 and accordingly i will update my post to include Ubuntu style Scala installation.