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:
Create a new file: repositories
Vim repositories[Java]View Plaincopy
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