Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Scala and SBT using apt-get on Ubuntu 16.04 or any Debian derivative using apt-get
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget http://scala-lang.org/files/archive/scala-2.12.1.deb
sudo dpkg -i scala-2.12.1.deb
sudo apt-get update
sudo apt-get install scala
## SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
@gnsiva

This comment has been minimized.

Copy link

@gnsiva gnsiva commented Oct 27, 2017

Thanks for this. By the way, you don't need the apt-get update and install after sudo dpkg -i scala-2.12.1.deb

@michielderoos

This comment has been minimized.

Copy link

@michielderoos michielderoos commented Oct 30, 2017

If you run into a version error once these steps are complete, run this:
apt-get install bc openjdk-8-jre sbt -y
Needed to do this on Ubuntu Server 16.04

@aymenoss

This comment has been minimized.

Copy link

@aymenoss aymenoss commented Jul 16, 2018

hello, I need to integrate sbt with scala ide, how can I make it, Thanks

@MrMic

This comment has been minimized.

Copy link

@MrMic MrMic commented Aug 25, 2018

Which IDE ?
sbt is a build tool and much more ...

@nikhilkc96

This comment has been minimized.

Copy link

@nikhilkc96 nikhilkc96 commented Nov 8, 2018

Thank you

@ma-anitha

This comment has been minimized.

Copy link

@ma-anitha ma-anitha commented Feb 21, 2019

I have installed the scala. But i couldnt get the Scala IDE

@ma-anitha

This comment has been minimized.

Copy link

@ma-anitha ma-anitha commented Feb 21, 2019

My scala version is 2.12.1 and eclipse version is 3.8.1

@SeoYein

This comment has been minimized.

Copy link

@SeoYein SeoYein commented Oct 5, 2020

If someone get error below after version change ,
"[ERROR] Failed to construct terminal; falling back to unsupported
java.lang.NumberFormatException: For input string: "0x100""

you can fix this error by put "export TERM=xterm-color" in .bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment