Download ZIP or TGZ package and expand it.html
DEB package is officially supported by sbt.java
Ubuntu and other Debian-based distributions use the DEB format, but usually you don’t install your software from a local DEB file. Instead they come with package managers both for the command line (e.g. apt-get
, aptitude
) or with a graphical user interface (e.g. Synaptic). Run the following from the terminal to install sbt
(You’ll need superuser privileges to do so, hence the sudo
).git
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 642AC823 sudo apt-get update sudo apt-get install sbt
Package managers will check a number of configured repositories for packages to offer for installation. sbt binaries are published to Bintray, and conveniently Bintray provides an APT repository. You just have to add the repository to the places your package manager will check.github
Once sbt
is installed, you’ll be able to manage the package in aptitude
or Synaptic after you updated their package cache. You should also be able to see the added repository at the bottom of the list in System Settings -> Software & Updates -> Other Software:apache
RPM package is officially supported by sbt.ubuntu
Red Hat Enterprise Linux and other RPM-based distributions use the RPM format. Run the following from the terminal to install sbt
(You’ll need superuser privileges to do so, hence the sudo
).curl
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo sudo yum install sbt
sbt binaries are published to Bintray, and conveniently Bintray provides an RPM repository. You just have to add the repository to the places your package manager will check.ide
Note: Please report any issues with these to thesbt-launcher-packageproject.ui
In the official tree there is no ebuild for sbt. But there areebuilds to merge sbt from binaries. To merge sbt from this ebuilds you can do:this
mkdir -p /usr/local/portage && cd /usr/local/portage git clone git://github.com/whiter4bbit/overlays.git echo "PORTDIR_OVERLAY=$PORTDIR_OVERLAY /usr/local/portage/overlays" >> /etc/make.conf emerge sbt-bin
Note: Please report any issues with the ebuildhere.
See the Typesafe Activator instructions.
See instructions to install manually.
Next Page > Installing sbt manually
Installing sbt on Linux
原文:http://spark.apache.org/docs/latest/building-spark.html#building-for-scala-211