curl -o scala-2.10.4.tgz http://www.scala-lang.org/files/archive/scala-2.10.4.tgz
tar xvf scala-2.10.4.tgz
mv scala-2.10.4 /usr/lib/scala
vim /etc/profile
export SCALA_HOME=/usr/lib/scala
export PATH=$SCALA_HOME/bin:$PATH
source /etc/profile