Mac安装Scala

1. 下载,解压Scala sdk,
2. 配置环境变量(.bash_profile)
  SCALA_HOME="/Users/soft/scala_soft/scala-2.11.6"
export PATH=$PATH:$SCALA_HOME/bin
3. 运行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.

解决 /release: No such file or directory [解决方案:配置java_home环境变量]

添加java_home到.bash_profile文件中

 export JAVA_HOME=$(/usr/libexec/java_home)

export PATH=$JAVA_HOME/bin:$PATH
export CLASS_PATH=$JAVA_HOME/lib

posted @ 2017-04-03 21:25  蒋励  阅读(2166)  评论(0编辑  收藏  举报