Refer to Scala Installation: http://www.lupaworld.com/thread-970271-1-1.html
- The following command installs the default Scala version
sudo apt-get install Scala
- If you want to install a specific version, follow these steps:
1) Download Scala compression pack
wget http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.tgz
2) Unzip
$ sudo mkdir/opt/Scala$ sudo tar zxvf scala-2.10.5.tgz-c/opt/scala
3) Edit Environment variables
There are four environment variable files in the Linux system:/etc/profile,/ETC/BASHRC, ~/.bash_profile, ~/.BASHRC, where/etc/profile and/ETC/BASHRC two profiles are working for all users.
/* Edit Profiles profile (this profile is valid for all users) */$ sudo vim/etc/profile/* At the end of the file is added as follows: */export scala_home=/opt/ scala/scala-2.10.5export PATH=$SCALA _home/bin:$PATH/* Press ESC to enter: Wq Save and Exit */
4) Verification
Scala–version
If the validation fails, you can restart the server to enter the command validation.
[Email protected]:~$ Scala-2.10.5--Copyright 2002-2013, LAMP/EPFL
linux:ubuntu14.04 offline installation of Scala (online installation)