Linux
- Download sbt from here: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgz
- Unpack the archive to a directory of your choice
- Add the
bin/
directory to thePATH
environment variable. Open the file~/.bashrc
in an editor (create it if it doesn’t exist) and add the following lineexport PATH=/PATH/TO/YOUR/sbt/bin:$PATH
Verify that sbt is installed correctly: Open a new terminal (to apply the changed .bashrc
) and type sbt -h
, you should see a help message from sbt. If you have problems installing sbt, ask for help on the forums.
Mac OS X
If you use the homebrew package manager, simply type brew update
and then brew install sbt
in a Terminal prompt.
Otherwise, install sbt by following these steps:
- Download sbt from here: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgz
- Unpack the archive to a directory of your choice
- Add the
bin/
directory to thePATH
environment variable. Open the file~/.bash_profile
in an editor (create it if it doesn’t exist) and add the following lineexport PATH=/PATH/TO/YOUR/sbt/bin:$PATH
Verify that sbt is installed correctly: Open a new terminal (to apply the changed .bash_profile
) using the Terminal
application in/Applications/Utilities/
and type sbt -h
, you should see a help message from sbt. If you have problems installing sbt, ask for help on the forums.
Windows
- Download the sbt installer from here: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.msi
- Run the installer
Verify that sbt is installed correctly: open the Command Prompt and type sbt sbt-version
, you should see the version number of sbt (the first time you run it, sbt will download libraries from the internet). If you have problems installing sbt, ask for help on the forums.
如果安装的时候载不下来,那就用翻墙来载