# wget https://raw2.github.com/zma/usefulscripts/master/script/install-scala.sh # sh ./install-scala.sh VER
where VER is the scala version that you want to install.
First step, install and configure the Java environment of course.
Second, download the scala-2.9.2 package and decpress it:
We install (copy) it to the
# mv scala-2.9.2 /opt/
Set globally for all users to include the Scala-2.9.2 installed in their
echo "export PATH=/opt/scala-2.9.2/bin/:$PATH" > /etc/profile.d/scala-2.9.2.sh
Alternatively, the $PATH setting can be added by users to their
After re-logon, the users can use Scala now.
I summarize these steps and put them together in a script: install-scala-2.9.2.sh.