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

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
主站蜘蛛池模板: 荆州市| 社旗县| 汉寿县| 黄平县| 柯坪县| 佛山市| 东乌珠穆沁旗| 松滋市| 昭苏县| 台前县| 馆陶县| 百色市| 张北县| 宜丰县| 陈巴尔虎旗| 涿州市| 宜兰市| 天等县| 佳木斯市| 台东市| 句容市| 台东市| 武清区| 弋阳县| 罗定市| 屯门区| 闵行区| 池州市| 昭通市| 新民市| 涟水县| 闸北区| 满洲里市| 乐业县| 东明县| 柳州市| 常德市| 城口县| 新营市| 任丘市| 芦溪县|