Installing sbt on Linux

Installing from a universal package 

Download ZIP or TGZ package and expand it.html

Ubuntu and other Debian-based distributions 

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

Ubuntu Software & Updates Screenshot

Red Hat Enterprise Linux and other RPM-based distributions 

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

Gentoo 

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.

Typesafe Activator 

See the Typesafe Activator instructions.

Installing manually 

See instructions to install manually.

Next Page                        >                         Installing sbt manually                                                

     

Contents

Getting Started with sbt

  1. Installing sbt

    1. Installing sbt on Mac

    2. Installing sbt on Windows

    3. Installing sbt on Linux

    4. Installing sbt manually

    5. Installing Typesafe Activator (including sbt)

  2. Hello, World

  3. Directory structure

  4. Running

  5. .sbt build definition

  6. Scopes

  7. More kinds of setting

  8. Library dependencies

  9. Multi-project builds

  10. Using plugins

  11. Custom settings and tasks

  12. Organizing the build

  13. Getting Started summary

  14. Appendix: Bare .sbt build definition

  15. Appendix: .scala build definition

  16. Contents in Depth

  17. Combined Pages

原文:http://spark.apache.org/docs/latest/building-spark.html#building-for-scala-211

相關文章
相關標籤/搜索