wget
tar -zxf scala-2.11.6.tgz
mv scala-2.11.6 /usr/lib
vim /etc/profile
在最后加
export SCALA_HOME=/usr/lib/scala-2.11.6
export PATH=$PATH:$SCALA_HOME/bin
使配置文件立即生效
source /etc/profile
测试
# scala -version
显示
Scala code runner version 2.11.6 -- Copyright 2002-2013, LAMP/EPFL
阅读(2518) | 评论(0) | 转发(0) |