Mac Linux 下安装scala
1.下载scala
从这里下载最新版本scala ,http://www.scala-lang.org/download/
2.安装scala
移动安装包到
/usr/local/
修改环境变量,sudo su进入root权限
vim /etc/profile
在文件末尾添加
export PATH="$PATH:/usr/local/scala-2.11.7/bin"
3.运行
在终端输入scala -version ,显示
Scala code runner version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL
或者 输入scala ,显示
Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_60).
Type in expressions to have them evaluated.
Type :help for more information.
scala>