Last active
January 31, 2023 19:10
-
-
Save visenger/5496675 to your computer and use it in GitHub Desktop.
Scala and sbt installation on ubuntu 12.04
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
#!/bin/sh | |
# one way (older scala version will be installed) | |
# sudo apt-get install scala | |
#2nd way | |
sudo apt-get remove scala-library scala | |
wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb | |
sudo dpkg -i scala-2.11.4.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
# sbt installation | |
# remove sbt:> sudo apt-get purge sbt. | |
wget http://dl.bintray.com/sbt/debian/sbt-0.13.6.deb | |
sudo dpkg -i sbt-0.13.6.deb | |
sudo apt-get update | |
sudo apt-get install sbt |
wget http://www.scala-lang.org/files/archive/scala-2.11.2.deb
sudo dpkg -i scala-2.11.2.deb
Thanks @javadba and @chenrui333
@chenrui333
Thank you !!!...
This is much easier than change system variable manually :)
Thanks! After installing this way though, I get duplicate sources.list entries... is anyone else getting that when doing an sudo apt-get update?
Thanks for idea.
I've made some changes to this script for using java7 dependency instead of java6: https://gist.github.com/maizy/c4d31c1f539694f721f6
It may be useful for someone.
Hey, you've already installed scala and sbt using the deb packages, why do you follow that with "apt-get install" of these packages?
scala: scala-2.11.6.deb
sbt: sbt-0.13.8.deb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please update the sbt:
wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb
sudo dpkg -i sbt-0.13.5.deb