Install Scala 2.10.x in Ubuntu

Source: Internet
Author: User
The default scala version on Ubuntu14.04.1LTS is 2.9, while the latest spark-1.3 requires the scala version 2.10.x of the lowest version, first, use apt-getremovescala to clean up old scala versions on the machine. Download http://www.scala-lang.org/download/2.10.5.htmlscala at this location ~ /. Bashrc

The default scala version on Ubuntu 14.04.1 LTS is 2.9, while the latest spark-1.3 requires the lowest version of scala 2.10.x, first, use apt-get remove scala to clear old scala versions on the machine. Download the http://www.scala-lang.org/download/2.10.5.html scala at this location,

After the installation is complete, decompress the package,

Last edited ~ /. Bashrc, set the following environment variables:

Export PATH =/home/zhangchao3/spark-evn/scala-2.10.5/bin: $ PATH
Export SCALA_HOME =/home/zhangchao3/spark-evn/scala-2.10.5

Finally, we can see that scala version is 2.10.

Www.linuxidc.com @ Hadoop01 :~ /Spark-evn/scala-2.10.5 $ scala-version
Scala code runner version 2.10.5 -- Copyright 2002-2013, LAMP/EPFL

Scala details: Click here
Scala: Click here

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-04/116455.htm

 

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.