Skip to content

Instantly share code, notes, and snippets.

@ferodss
Forked from visenger/install_scala_sbt.sh
Last active December 26, 2015 09:29
Show Gist options
  • Save ferodss/7129981 to your computer and use it in GitHub Desktop.
Save ferodss/7129981 to your computer and use it in GitHub Desktop.
Install Scala Lang 2.10.3, Scala SBT 0.13.0 and Play Framework 2.2.0
#!/bin/sh
echo "Downloading and installing Scala 2.10.3..."
sudo /usr/local/src
sudo wget -c http://www.scala-lang.org/files/archive/scala-2.10.3.tgz
sudo tar zxf scala-2.10.3.tgz
sudo mv scala-2.10.3 /usr/share/scala
sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc
sudo ln -s /usr/share/scala/bin/sbaz /usr/bin/sbaz
sudo ln -s /usr/share/scala/bin/sbaz-setup /usr/bin/sbaz-setup
sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc
sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap
echo "Removing previous SBT..."
# remove sbt:>
sudo apt-get purge sbt
echo "Downloading and installing SBT 0.13.0..."
wget -c http://repo.scala-sbt.org/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.0/sbt.deb
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install sbt
echo "Downloading and intalling Play Framework 2.2.0 in ~/play.2.2.0..."
cd ~/
wget -c http://downloads.typesafe.com/play/2.2.0/play-2.2.0.zip
unzip play-2.2.0.zip -d .
echo "export PATH=$PATH:~/play-2.2.0" >> ~/.bashrc
echo "Have fun!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment