Last active
October 20, 2021 20:58
-
-
Save Frozenfire92/3627e38dc47ca581d6d024c14c1cf4a9 to your computer and use it in GitHub Desktop.
Install Scala and SBT using apt-get on Ubuntu 16.04 or any Debian derivative using apt-get
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
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
My scala version is 2.12.1 and eclipse version is 3.8.1