官术网_书友最值得收藏!

Installing Scala

If you have the Scala .tar file (for example, scala-2.12.6.tgz), then copy it to an AWS EC2 Linux instance at any location (for example, /opt):

The /opt file is an empty folder within the root in most Linux-based operating folders. Here, we can use this folder to copy and install software. By default, this folder is owned by root. Run the following command if you are getting permission issues while accessing this folder:

sudo chmod -R 777 /opt

Follow these steps to install Scala 2.12.6 on your Linux VM:

  1. Go to the location where you copied the Scala software package and uncompress it:
cd /opt
tar -xzvf scala-2.12.6.tgz
  1. Set the environment variable in .bash_profile, as follows:
nano ~/.bash_profile
  1. Add the following lines to the end of the file:
export SCALA_HOME=/opt/scala-2.12.6
export PATH=$PATH:$SCALA_HOME/bin
  1. Run the following command to update the environment variables in the current session:
source ~/.bash_profile
  1. Check for a Scala installation by running the following command:
scala -version
主站蜘蛛池模板: 襄汾县| 乳山市| 蕲春县| 肇源县| 伊吾县| 凤凰县| 横峰县| 紫阳县| 苗栗县| 斗六市| 华容县| 台江县| 克拉玛依市| 凤山县| 弥勒县| 西和县| 彰化市| 正安县| 广平县| 家居| 西乌珠穆沁旗| 鹿邑县| 漳州市| 阜宁县| 绥化市| 应用必备| 满洲里市| 莫力| 恩施市| 抚宁县| 上林县| 兴安盟| 乐都县| 南乐县| 翁牛特旗| 林州市| 都兰县| 罗田县| 云南省| 芷江| 沭阳县|