mac scala安装

1、下载Scala

http://downloads.lightbend.com/scala/2.12.1/scala-2.12.1.tgz

2、解压

tar -xzvf scala-2.12.1.tgz 

 

3、设置环境变量

sudo vim ~/.bash_profile 

 

SCALA_HOME=/Users/chenruixuan/developer/scala-2.12.1

export PATH=$SCALA_HOME/bin:$PATH

4、更新环境变量

source ~/.bash_profile

 

5、测试

$ scala

cat: /release: No such file or directory

Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45).

Type in expressions for evaluation. Or try :help.

scala> 

原文链接:,转发请注明来源!

发表评论