uxwcgg
Last Updated: February 25, 2016
·
2.234K
· belano

Howto install scala in ubuntu from tar.gz

Quick'n'dirty instructions for installing scala in ubuntu

$ sudo mkdir -pf /usr/local/scala && cd /usr/local/scala
$ sudo wget http://www.scala-lang.org/files/archive/scala-2.10.2.tgz && sudo tar xvfz scala-2.10.2.tgz
$ sudo update-alternatives --install /usr/bin/scala scala /usr/local/scala/scala-2.10.2/bin/scala 1 --slave /usr/bin/scalac scalac /usr/local/scala/scala-2.10.2/bin/scalac --slave /usr/bin/scalap scalap /usr/local/scala/scala-2.10.2/bin/scalap --slave /usr/bin/scaladoc scaladoc /usr/local/scala/scala-2.10.2/bin/scaladoc --slave /usr/bin/fsc fsc /usr/local/scala/scala-2.10.2/bin/fsc
$ sudo echo 'SCALA_HOME=$(readlink -f /usr/bin/scala | sed "s:/bin/scala::")' > /etc/profile.d/scala.sh
$ sudo echo 'export SCALA_HOME' >> /etc/profile.d/scala.sh

1 Response
Add your response

11014

Well, it's sometimes easier to get it on board along with just installing sbt, if you're okay with running through sbt. Just pointing out an alternative.

over 1 year ago ·