Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1004 Bytes

INSTALLATION.md

File metadata and controls

42 lines (27 loc) · 1004 Bytes

Installation

On Ubuntu

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 here.

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

Uncompress it to /opt/.

  tar -C /opt/ -xvzf scala-2.11.7.tgz

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

  PATH="$PATH:/opt/scala-2.11.7/bin"

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

 scala -version