mac平台scala开发环境搭建

 

到scala官网,下载scala的sdk,地址:http://www.scala-lang.org/download/

adeMacBook-Pro:scala-2.11.6 apple$ wget http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.tgz?_ga=1.266727886.1594027332.1432723613

解压并配置:

adeMacBook-Pro:scala-2.11.6 apple$ tar -zxvf scala-2.11.6.tgz?_ga=1.266727886.1594027332.1432723613

adeMacBook-Pro:scala-2.11.6 apple$ cd scala-2.11.6

adeMacBook-Pro:scala-2.11.6 apple$ sudo vim ~/.bash_profile
~/.bash_profile的配置如下:
SCALA_HOME="/Users/apple/Documents/soft/scala_soft/scala-2.11.6"

export PATH=$PATH:$SCALA_HOME/bin

其中SCALA_HOME为scala的sdk包的路径

试用scala:(记住必须得启动另外一个终端,原因就不说了)

adeMacBook-Pro:~ apple$ scala
Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_71).
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

 

学习资料(转)

http://helloscala.com/

http://www.scala-lang.org/documentation/

http://scalachina.com/

 

视频:
1. Functional Programming Principles in Scala
https://www.coursera.org/course/progfun
2. Principles of Reactive Programming
https://www.coursera.org/course/reactive

在线教程或文章:
1. Scala Tour
http://www.scala-tour.com/
2. Scala Tutorials
http://docs.scala-lang.org/tutorials/tour/tour-of-scala.html
3. Scala Cheatsheet
http://docs.scala-lang.org/cheatsheets/
4. Scala School
http://twitter.github.io/scala_school/
5. Scala Tutorials by code
http://scalatutorials.com/tour/
6. Learn Scala in 10 minutes
http://learnxinyminutes.com/docs/scala/
7. Scala by Example
http://www.scala-lang.org/docu/files/ScalaByExample.pdf
8. Scala Overview on StackOverflow
http://stackoverflow.com/tags/scala/info

书:
1. Programming in Scala: A Comprehensive Step-by-Step Guide, 2nd Edition
2. Scala in Action
3.http://www.atomicscala.com/book/

posted @ 2016-11-22 11:51  众里寻,阑珊处  阅读(531)  评论(0编辑  收藏  举报
返回顶部