UBUNTU14 manual installation of SBT
See official website configuration Instructions http://www.scala-sbt.org/release/tutorial/Manual-Installation.html
1. Download SBT Universal Platform Compression pack: sbt-0.13.5.tgz
Http://www.scala-sbt.org/download.html
2, set up the directory, unzip the file to the established directory
$ sudo mkdir/opt/scala/sbt$ sudo tar zxvf sbt-0.13.5.tgz-c/opt/scala/
3. Create a script file to start SBT
/ * Select a location to create a script text file that starts SBT, such as a new text file named SBT under the/opt/scala/sbt/directory * /
$ cd/opt/scala/sbt/
$ vim SBT
/ * Add in SBT text file
bt_opts= "-xms512m-xmx1536m-xss1m-xx:+cmsclassunloadingenabled-xx:maxpermsize=256m"
java $SBT _opts-jar bin/sbt-launch.jar "[email protected]"
then press ESC to enter: Wq save exit, note that the path in the red font can be either an absolute path or a relative path. Just locate the Sbt-launch.jar file in the extracted SBT file package correctly * /
/x Modify SBT file Permissions x/
$ chmod u+x SBT
4. Configure the PATH environment variable to ensure that the SBT command can be used in the console
$ vim ~/.BASHRC
/* After adding the following code to the end of the file, save exit */
Export path=/opt/scala/sbt/: $PATH
/* Make the configuration file effective immediately */
$ source ~/.BASHRC
5. Test if SBT is installed successfully
/ * The first time you execute, you will download some packages before you can use them properly, to make sure network, the installation after successful display as follows */
$ SBT Sbt-version
[INFO] Set current project-to-SBT (in Build file:/opt/scala/sbt/)
[INFO] 0.13.5