CentOS6.7 successfully installed SBT

Source: Internet
Author: User
Tags jcenter aliyun

Installation Environment

linux:centos6.7

sbt:sbt-0.13.15


1-yum installation SBT

SBT binaries are published to Bintray, and Bintray conveniently provides the RPM repository. All we need to do is add the repository to where the full Report Manager will check.

[ROOT@VM bin]# Curl https://bintray.com/sbt/rpm/rpm > Bintray-sbt-rpm.repo% total% Received% xferd Average
                                 dload Upload Total spent left  Speed
159   159    0   159    0     0    121      0--:--:--  0:00:01--:--:--   230
[ROOT@VM bin]# sudo mv bintray-sbt-rpm.repo/etc/yum.repos.d/
[root@vm bin]# sudo yum install SBT

If you choose to install manually, go to SBT official website download compression package, to the server decompression installation. You can use the environment variables after setting them.


2-Complete installation

The first time you enter the SBT command after the installation is complete, the interface will be jammed, actually downloading the dependent package. The foreign mirror is very slow, which is estimated to be several hours.

Because SBT default reoisitory is maven, some of them will be wall. So modify the repository for Aliyun, and then download

Configure the Aliyun repository

[ROOT@VM. sbt]# vi ~/.sbt/repositories
[repositories]
  local
  aliyun-nexus:http://maven.aliyun.com/ nexus/content/groups/public/
  jcenter:https://jcenter.bintray.com/
  typesafe-ivy-releases:https:// Repo.typesafe.com/typesafe/ivy-releases/, [Organization]/[module]/[revision]/[type]s/[artifact] (-[classifier]). [ext], bootonly
  maven-central

Note: Check the above command, the end of each line do not leave blank, otherwise it will be an error.

Run SBT and start downloading the jar package. Although the speed is not fast, but can be installed successfully.

[ROOT@VM. sbt]# SBT getting ORG.SCALA-SBT SBT 0.13.15 (This could take some time) ... downloading http://repo.typesafe.com/
	Typesafe/ivy-releases/org.scala-sbt/ivy/0.13.15/jars/ivy.jar ... [Successful] Org.scala-sbt#ivy;0.13.15!ivy.jar (142039ms) downloading http://repo.typesafe.com/typesafe/
	Ivy-releases/org.scala-sbt/tracking/0.13.15/jars/tracking.jar ... [Successful] Org.scala-sbt#tracking;0.13.15!tracking.jar (11548ms) downloading http://repo.typesafe.com/typesafe/
	Ivy-releases/org.scala-sbt/incremental-compiler/0.13.15/jars/incremental-compiler.jar ... [Successful] Org.scala-sbt#incremental-compiler;0.13.15!incremental-compiler.jar (31245ms) downloading http://
	Repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.13.15/jars/cache.jar ... [Successful] Org.scala-sbt#cache;0.13.15!cache.jar (26973ms) downloading http://repo.typesafe.com/typesafe/
	Ivy-releases/org.scala-sbt/test-agent/0.13.15/jars/test-agent.jar ... [Successful] Org.scala-sbt#test-agent;0.13.15!test-agent. Jar (28292MS)
 

Wait for the command to complete, SBT installation complete.

Verifying installation

[ROOT@VM ~]# SBT
[INFO] Loading Project definition from/root/project
[INFO] Set current project to root file:/root/)
>


VI ~/.sbt/boot/update.log can view progress during the download process.

If SBT begins to report Lock's fault, delete the Sbt.boot.lock file under ~/.sbt/boot.






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.