Mac OS Installation configuration Scala

Source: Internet
Author: User

1. Download the latest version of scala,http://www.scala-lang.org/

2. Unzip the tgz under the installation path you wish.

3. Configure the environment variables Scala_home, and path:

(1) Enter the bin directory under your Scala decompression path of the terminal, for example jaycicledembp:~ jaycicle$ CD scala-2.11.7/bin

(2) in the bin directory using sudo to enter the VIM edit mode, modify the configuration file profile: input sudo vim/etc/profile

(3) Add the corresponding environment variable scala_home, and path at the end of the file. For example, add the following two lines at the end    

Scala_home= "/users/jaycicle/scala-2.11.7"

Path= "$PATH:/users/jaycicle/scala-2.11.7/bin"

(4) At this point, the configuration is successful, start from the new terminal, enter Scala if it appears as follows:

Welcome to Scala version 2.11.7 (Java HotSpot (TM) 64-bit Server VM, Java 1.7.0_71).

Type in expressions to has them evaluated.

Type:help for more information.

Scala>

Congratulations to you! Successfully open a Scala tour!

Mac OS Installation configuration Scala

Related Article

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.