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.reposudo mv bintray-sbt-rpm.repo /etc/yum.repos.d/sudo yum install sbt

SBT binaries are published to Bintray, and Bintray provides an easy way to provide the RPM repository. You just need to add the repository to the place where your package manager will check.

3. Manual installation, currently available on the website can be directly run address: http://www.scala-sbt.org/download.html

After download is an SBT directory, first assign permissions: chmod u+x SBT, and then add SBT to the path, the source can be used

Note: Because of the network, so when you enter the SBT command, the situation will appear stuck, in fact, it is in the download dependent package, must be patient and so on! I directly open the background process and so it slowly download, estimated for several hours ... In addition, because the SBT default repository is maven, some of them will be wall, so it is recommended to use Oschina's repository. Use this method:

CD ~/.sbt/

Create a new file: repositories

Vim repositories

[Java]View Plaincopy
    1. [Repositories]
    2. Local
    3. Osc:http://maven.oschina.net/content/groups/public/
    4. Typesafe:http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/) ( sbt_[sbtversion]/) [Revision]/[type]s/[artifact] (-[classifier]). [ext], bootonly
    5. Sonatype-oss-releases
    6. Maven-central
    7. Sonatype-oss-snapshots

Save As you can

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

Finally you can use the ....

CentOS installation SBT

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.