建站不啰嗦,上手跟我做(三十)scala 安装

scala 下载

scala 官方下载地址下载。
图片.png

这里下载的是 scala-2.13.3.tgz

scala 安装

[root@localhost spark]# mkdir /usr/local/scala
[root@localhost spark]# mv scala-2.13.3.tgz /usr/local/scala/
[root@localhost spark]# cd /usr/local/scala
[root@localhost scala]# ls
scala-2.13.3.tgz
[root@localhost scala]# tar -zxvf scala-2.13.3.tgz 
scala-2.13.3/
scala-2.13.3/lib/
scala-2.13.3/lib/scala-compiler.jar
scala-2.13.3/lib/scalap-2.13.3.jar
scala-2.13.3/lib/jline-3.15.0.jar
scala-2.13.3/lib/scala-reflect.jar
scala-2.13.3/lib/jna-5.3.1.jar
scala-2.13.3/lib/scala-library.jar
scala-2.13.3/doc/
scala-2.13.3/doc/licenses/
scala-2.13.3/doc/licenses/apache_jna.txt
scala-2.13.3/doc/licenses/mit_jquery.txt
scala-2.13.3/doc/licenses/bsd_asm.txt
scala-2.13.3/doc/licenses/bsd_jline.txt
scala-2.13.3/doc/LICENSE.md
scala-2.13.3/doc/License.rtf
scala-2.13.3/doc/README
scala-2.13.3/doc/tools/
scala-2.13.3/doc/tools/scaladoc.html
scala-2.13.3/doc/tools/scalap.html
scala-2.13.3/doc/tools/css/
scala-2.13.3/doc/tools/css/style.css
scala-2.13.3/doc/tools/scala.html
scala-2.13.3/doc/tools/index.html
scala-2.13.3/doc/tools/images/
scala-2.13.3/doc/tools/images/scala_logo.png
scala-2.13.3/doc/tools/images/external.gif
scala-2.13.3/doc/tools/scalac.html
scala-2.13.3/doc/tools/fsc.html
scala-2.13.3/bin/
scala-2.13.3/bin/fsc
scala-2.13.3/bin/scalap.bat
scala-2.13.3/bin/scala
scala-2.13.3/bin/scaladoc.bat
scala-2.13.3/bin/fsc.bat
scala-2.13.3/bin/scala.bat
scala-2.13.3/bin/scaladoc
scala-2.13.3/bin/scalap
scala-2.13.3/bin/scalac
scala-2.13.3/bin/scalac.bat
scala-2.13.3/LICENSE
scala-2.13.3/man/
scala-2.13.3/man/man1/
scala-2.13.3/man/man1/scalac.1
scala-2.13.3/man/man1/scala.1
scala-2.13.3/man/man1/scaladoc.1
scala-2.13.3/man/man1/fsc.1
scala-2.13.3/man/man1/scalap.1
scala-2.13.3/NOTICE


配置环境变量

[root@localhost scala]# ls
scala-2.13.3  scala-2.13.3.tgz
[root@localhost scala]# pwd
/usr/local/scala

vim /etc/profile

# scala
export SCALA_HOME=/usr/local/scala/scala-2.13.3
export PATH=$PATH:$SCALA_HOME/bin

验证 scala 是否安装成功

# 刷新配置
[root@localhost scala]# source /etc/profile

[root@localhost ~]# scala -version
Scala code runner version 2.13.3 -- Copyright 2002-2020, LAMP/EPFL and Lightbend, Inc.

上一篇 建站不啰嗦,上手跟我做(二十九)rabbitMQ 安装
目录