Skip to content

Instantly share code, notes, and snippets.

@samklr samklr/install_scala.sh
Last active Aug 29, 2015

Embed
What would you like to do?
Install Java Scala and SBT on Debian (useless pain in the ass)
#!/bin/sh
sudo apt-get -yqq git core
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
#exit
#Scala
sudo apt-get update
sudo apt-get remove scala-library scala
##wget http://www.scala-lang.org/files/archive/scala-2.11.2.deb ##watch out Spark only works until 2.10
wget http://scala-lang.org/files/archive/scala-2.10.4.deb
sudo apt-get -f install
sudo dpkg -i scala-2.10.4.deb
sudo apt-get update
# sbt installation
# remove sbt:> sudo apt-get purge sbt.
wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb
sudo apt-get update
sudo dpkg -i sbt-0.13.5.deb
@bithavoc

This comment has been minimized.

Copy link

commented Apr 2, 2015

on line 19, it should be sudo dpkg -i scala-2.10.4.deb (version number doesn't match)

@samklr

This comment has been minimized.

Copy link
Owner Author

commented Apr 24, 2015

yep. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.