See official website configuration Instructions http://www.scala-sbt.org/release/tutorial/Manual-Installation.html
1, download SBT Universal Platform Compression package: sbt-0.13.5.tgz
Http://www.scala-sbt.org/download.html
2, the establishment of the directory, extract files to the established directory
$ sudo tar zxvf sbt-0.13.5.tgz-c/opt/scala/
3. Set up script files for startup SBT
/* Select a location to create a script text file to start SBT, such as the new file named SBT under the/opt/scala/sbt/directory * * *
$ cd/opt/scala/sbt/
$ vim SBT
Sbt_opts= "-xms512m-xmx1536m-xss1m-xx:+cmsclassunloadingenabled-xx:maxpermsize=256m"
Then press ESC to enter: Wq save exit, note that the path in the red font is positioned to the absolute path of the Sbt-launch.jar file in the unpacked SBT package.
/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 the end of the file add the following code, save exit * *
Export path=/opt/scala/sbt/: $PATH
/* Make the configuration file effective immediately *
$ source ~/.BASHRC
5. Test SBT Whether the installation is successful
/* The first execution, will download some packages, and then to normal use, to ensure that the network, the installation after the successful display of the following * *
$ SBT Sbt-version
[INFO] Set current project to SBT (in Build file:/opt/scala/sbt/)
[INFO] 0.13.5
See official website configuration Instructions http://www.scala-sbt.org/release/tutorial/Manual-Installation.html
1, download SBT Universal Platform Compression package: sbt-0.13.5.tgz
Http://www.scala-sbt.org/download.html
2, the establishment of the directory, extract files to the established directory
$ sudo tar zxvf sbt-0.13.5.tgz-c/opt/scala/
3. Set up script files for startup SBT
/* Select a location to create a script text file to start SBT, such as the new file named SBT under the/opt/scala/sbt/directory * * *
$ cd/opt/scala/sbt/
$ vim SBT
Sbt_opts= "-xms512m-xmx1536m-xss1m-xx:+cmsclassunloadingenabled-xx:maxpermsize=256m"
Then press ESC to enter: Wq save exit, note that the path in the red font is positioned to the absolute path of the Sbt-launch.jar file in the unpacked SBT package.
/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 the end of the file add the following code, save exit * *
Export path=/opt/scala/sbt/: $PATH
/* Make the configuration file effective immediately *
$ source ~/.BASHRC
5. Test SBT Whether the installation is successful
/* The first execution, will download some packages, and then to normal use, to ensure that the network, the installation after the successful display of the following * *
$ SBT Sbt-version
[INFO] Set current project to SBT (in Build file:/opt/scala/sbt/)
[INFO] 0.13.5