Install Scala under Linux

Source: Internet
Author: User

PS: The contents of this article are mainly from the notes of Brother Ningshi.

1, download scala.tgz. Note. msi is a program under Windows and cannot be opened in Linux.

Http://www.scala-lang.org/download/2.11.6.html inside can be downloaded. Down, you can see the tgz format.

2. Create and copy to the Usr/scala folder.

In Linux Desktop Edition can not knock command. Open the computer directly, it contains all the folders under Linux.

3, unzip the folder.

When you unzip the folder directly, the scala-2.11.6 folder appears. Then just configure Scala so you don't need to repeat the installation.

4. Configure Scala's environment variables:

[Email protected] ~]# Vim/etc/profile

To add an environment variable:

#scala_home

#SCALA VARIABLES START

Export scala_home=/usr/scala-2.11.6

Export path= $PATH: $SCALA _home/bin

#SCALA VARIABLES END

PS: When the command is executed, the terminal will change to, press I or the Insert key. Then you can insert the configuration.

When the insertion is complete (remember to change the Scala version to your version), press the ESC key, and then press the ":" Colon. Execute command: Save and return to Terminal

5, is the configuration environment to take effect.

[[email protected] ~]# source/etc/profile make the configuration environment effective.

Detect if Scala is configured successfully

[Email protected] ~]# Scala

Install Scala under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.