Install Scala on Ubuntu,so easy,technology is no buoundry

Install Scala on Ubuntu | Code for Thought

    Install Scala on Ubuntu
    Posted on
    November 26, 2010
    by
    sumwai

    To install Scala on Ubuntu, you get it either using

    sudo apt-get install scala

    or if you want to get the latest stable Scala release, here are the steps:

    
    First, install Sun Java

    Enable Multiverse repository, see here.

    Install the Sun Java packages, choose it to be the default.
    Second, install Scala

    Download the latest Scala package, on scala-lang.org.

    wget http://www.scala-lang.org/downloads/distrib/files/scala-2.8.1.final.tgz


    Uncompress it to /opt/

    tar -C /opt/ -xvzf scala-2.8.1.final.tgz

    Add Scala to your $PATH by adding this line to .profile inside your home directory

    PATH="$PATH:/opt/scala-2.8.1.final/bin"

    Restart Ubuntu, start a terminal window and type to see you have successfully installed it.

    scala -version


原文地址:https://www.cnblogs.com/lexus/p/2420575.html