First step, install and configure the Java environment of course.
Second, download the scala-2.9.2 package and decpress it:
# wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.2.tgz
# tar xf scala-2.9.2.tgz
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.