Install sbt and centossbt on centos

Source: Internet
Author: User

Install sbt and centossbt on centos

1. yum install sbt

2. If not

 

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 binary files are published to Bintray, while Bintray provides the RPM resource library conveniently. You only need to add the repository to the place where your package manager will check.

3. Manual installation, the current official website provides is can run directly address: http://www.scala-sbt.org/download.html

After the download is a sbt directory, first grant the permission: chmod u + x sbt, and then add the sbt to the path. You can use

 

Note: Due to network reasons, when you enter the sbt command, the system will be stuck. In fact, this is the download of the relevant dependent package. Be patient! I directly opened the background process and made it download slowly. It may take several hours... in addition, because sbt's default repository is maven, some of it will be walled, we recommend that you use oschina's repository. The usage is as follows:

Cd ~ /. Sbt/

Create a file: repositories

Vim repositories

 

[Java]View plain copy
  1. [Repositories]
  2. Local
  3. 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

 

In addition, when you enter sbt, a lock file is displayed ~ /. Delete the boot folder under the sbt directory. In addition, you can view the update. log in the boot folder.

Finally, I can use it ....

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.