Installing sbt on Linux

Installing from a universal package 

Download ZIP or TGZ package and expand it.

Ubuntu and other Debian-based distributions 

DEB package is officially supported by sbt.

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).

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.

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:

Ubuntu Software & Updates Screenshot

Red Hat Enterprise Linux and other RPM-based distributions 

RPM package is officially supported by sbt.

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 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.

Note: Please report any issues with these to thesbt-launcher-packageproject.

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:

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


转载于:https://my.oschina.net/u/2306127/blog/550321

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值