文档章节

Installing sbt on Linux

openthings
 openthings
发布于 2015/12/24 11:02
字数 513
阅读 73
收藏 0

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


本文转载自:http://spark.apache.org/docs/latest/building-spark.html#building-for-scala-211

openthings
粉丝 322
博文 1133
码字总数 685064
作品 1
东城
架构师
私信 提问
SBT 安装和第一次执行总是等待的问题

根据官方文档:http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.listsud......

kongjun
2016/01/18
905
0
ERROR: compilation failed for package ‘SparkR’ * removing ‘/root/SparkR-pkg/lib/SparkR’

[root@master SparkR-pkg]# SPARK_VERSION=1.2.1 ./install-dev.sh * installing *source* package ‘SparkR’ ... ** libs ** arch - ./sbt/sbt assembly Attempting to fetch sbt curl: (......

天池番薯
2016/01/19
387
0
Play Framework 2.3.x开始

1.官网安装指导(包含转换成Eclipse、netbean、Intellij项目) https://playframework.com/documentation/2.3.x/Installing 主要步骤:生成项目,启动(sbt自动下载依赖jar,sbt相似于maven)...

MoksMo
2015/05/08
140
0
断网机部署使用idea intellij+sbt+scala

如题,希望在断网机(一下都不能连互联网的)部署使用idea intellij+sbt+scala,遇到了sbt必须联网的问题。我的解决方案是在另一台可以上互联网的机器上(linux),搭建idea intellij+sbt+s...

kaiyuanzhe
2015/01/30
2.8K
1
oracle 备份接口开发

按照ORACLE MML SBT API开发相应的接口,一共涉及约10多个函数; 包括:WINDOWS平台;LINUX平台;AIX平台。 项目详细需求见附件。

刘先生
2016/08/23
6
0

没有更多内容

加载失败,请刷新页面

加载更多

Replugin借助“UI进程”来快速释放Dex

public static boolean preload(PluginInfo pi) { if (pi == null) { return false; } // 借助“UI进程”来快速释放Dex(见PluginFastInstallProviderProxy的说明) return PluginFastInsta......

Gemini-Lin
今天
4
0
Hibernate 5 的模块/包(modules/artifacts)

Hibernate 的功能被拆分成一系列的模块/包(modules/artifacts),其目的是为了对依赖进行独立(模块化)。 模块名称 说明 hibernate-core 这个是 Hibernate 的主要(main (core))模块。定义...

honeymoose
今天
4
0
CSS--属性

一、溢出 当内容多,元素区域小的时候,就会产生溢出效果,默认是纵向溢出 横向溢出:在内容和容器之间再套一层容器,并且内部容器要比外部容器宽 属性:overflow/overflow-x/overflow-y 取值...

wytao1995
今天
4
0
精华帖

第一章 jQuery简介 jQuery是一个JavaScript库 jQuery具备简洁的语法和跨平台的兼容性 简化了JavaScript的操作。 在页面中引入jQuery jQuery是一个JavaScript脚本库,不需要特别的安装,只需要...

流川偑
今天
7
0
语音对话英语翻译在线翻译成中文哪个方法好用

想要进行将中文翻译成英文,或者将英文翻译成中文的操作,其实有一个非常简单的工具就能够帮助完成将语音进行翻译转换的软件。 在应用市场或者百度手机助手等各大应用渠道里面就能够找到一款...

401恶户
今天
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部