scala sbt

一. 通过 yum 安装

# curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo

# yum install set

二. 源码安装(java 1.8 installed)

1. Download latest sbt version

# cd /opt

# wget http://11a36.http.tor01.cdn.softlayer.net/sbt/0.13.16/sbt-0.13.16.tgz

2. 安装

# tar zxvf sbt-0.13.16.tgz -C /opt && cd /opt/sbt

# vim sbt

#!/bin/bash

SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"

java $SBT_OPTS -jar /opt/sbt/bin/sbt-launch.jar "$@"

3. 增加运行权限

# chmod u+x /opt/sbt/sbt

4. 配置环境变量

# vim /etc/profile

...

...

export PATH=/opt/sbt/:$PATH

# source /etc/profile

4. 测试sbt是否安装成功(确保联网,会下载一些包)

# sbt sbt-version

你可能感兴趣的:(scala sbt)