linux:ubuntu14.04 offline installation of Scala (online installation)

Source: Internet
Author: User

Refer to Scala Installation: http://www.lupaworld.com/thread-970271-1-1.html

    • The following command installs the default Scala version
sudo apt-get install Scala
    • If you want to install a specific version, follow these steps:

1) Download Scala compression pack

wget http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.tgz

2) Unzip

$ sudo mkdir/opt/Scala$ sudo tar zxvf scala-2.10.5.tgz-c/opt/scala

3) Edit Environment variables

There are four environment variable files in the Linux system:/etc/profile,/ETC/BASHRC, ~/.bash_profile, ~/.BASHRC, where/etc/profile and/ETC/BASHRC two profiles are working for all users.

/* Edit Profiles profile (this profile is valid for all users) */$ sudo vim/etc/profile/* At the end of the file is added as follows: */export scala_home=/opt/ scala/scala-2.10.5export PATH=$SCALA _home/bin:$PATH/* Press ESC to enter: Wq Save and Exit */

4) Verification

Scala–version

If the validation fails, you can restart the server to enter the command validation.

[Email protected]:~$ Scala-2.10.5--Copyright 2002-2013, LAMP/EPFL

linux:ubuntu14.04 offline installation of Scala (online installation)

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.