macbook pro 上如何搭建scala的开发环境
程序员文章站
2022-03-10 22:01:57
...
- 到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.
转自
http://www.cnblogs.com/super-d2/p/4534208.html
上一篇: SQLException:第1行:'@P1' 附近有语法错误
下一篇: php 判断文件类型的函数