CentOS installation SBT

Source: Internet
Author: User
Tags sonatype

1.yum Install SBT

2. If not, then

Curl https://bintray.com/sbt/rpm/rpm > Bintray-sbt-rpm.repo
sudo mv bintray-sbt-rpm.repo/etc/yum.repos.d/
sudo yum install SBT

SBT binaries are published to Bintray, and Bintray conveniently provides the RPM repository. You just need to add the repository to the place your package manager will check. 3. Manual installation, the current official website provides is can directly run the address: http://www.scala-sbt.org/download.html

After downloading is a SBT directory, first assign permissions: chmod u+x SBT, and then add SBT to the path, source can use


Note: Because of the network reason, so when you enter the SBT command, will appear card situation, in fact, this is in the download related dependency package, must be patient. I opened the background process and so let it slowly download, estimated for several hours ... In addition, because SBT default repository is maven, some of them will be wall, so it is recommended to use Oschina repository. The use method is:

CD ~/.sbt/

Create a new file: repositories

Vim repositories

[Repositories]
Local
osc:http://maven.oschina.net/content/groups/public/
typesafe:http://repo.typesafe.com/typesafe/ Ivy-releases/, [organization]/[module]/(scala_[scalaversion]/) (sbt_[sbtversion]/) [Revision]/[type]s/[artifact] ( -[classifier]). [ext], bootonly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots
Save you can

In addition, sometimes the input SBT will prompt a lock file, which is in the ~/.SBT directory under the boot folder, delete it. Also view download information to view the Update.log under the boot folder

Finally, it can be used ....

Related Article

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.