Total Pageviews

Saturday 24 May 2014

sbt的安装和使用

wget http://dl.bintray.com/sbt/native-packages/sbt/0.13.2/sbt-0.13.2.tgz
tar zxvf sbt-0.13.2.tgz
cd sbt
cd bin
ls
sbt  sbt-launch.jar  sbt-launch-lib.bash
java -jar /root/sbt/bin/sbt-launch.jar
在第一次运行时,sbt会联网下载一些jar包.
下载完后,会出现一个控制台,即“>"这样的提示符。
可以输入help,它会显示一些参数命令的说明。输入exit,即可退出控制台。

(参见http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html,
https://github.com/sbt/sbt/raw/0.13.2/src/sphinx/Getting-Started/Setup.rst)
http://www.scala-sbt.org/release/docs/Getting-Started/Hello.html
http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html
http://www.scala-sbt.org/release/docs/Getting-Started/Running.html
https://github.com/CSUG/real_world_scala/blob/master/02_sbt.markdown
http://sanatir.github.io/tech/2012/04/10/sbt-setup.html

http://zhichaowang.wordpress.com/2011/11/25/%E7%94%A8sbt%E5%88%9B%E5%BB%BAscala%E9%A1%B9%E7%9B%AE/
https://www.ibm.com/developerworks/community/blogs/guochun/entry/_e4_bd_bf_e7_94_a8sbt_e6_90_ad_e5_bb_bascala_e5_bc_80_e5_8f_91_e7_8e_af_e5_a2_83_e6_80_bb_e7_bb_93?lang=en
http://my.oschina.net/chengye/blog/126461
http://www.gtan.com/akka_doc/intro/getting-started-first-scala.html

(or:
apt-get install sbt ,dpkg -i http://dl.bintray.com/sbt/debian/sbt-0.13.2.deb ;
yum install sbt, yum -ivh http://dl.bintray.com/sbt/rpm/sbt-0.13.2.rpm)
如果是这种安装方式:apt-get install sbt,则
as3:~# ls /usr/share/sbt/bin
sbt  sbt-launch.jar  sbt-launch-lib.bash
as3:~# java -jar /usr/share/sbt/bin/sbt-launch.jar

(or:
wget http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.2/sbt-launch.jar
java -jar /root/sbt-launch.jar)