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 ....