How to install Scala on Ubuntu

Step 1: First of all download the binaries from the following link,

http://www.scala-lang.org/download/

and then unpack the archive.

Step 2: Setting up Path and Environment:

For quick access, add scala and scalac to your path. For example:

Environment                      Variable                        Value (example)
Unix                                   $SCALA_HOME           /usr/local/share/scala
$PATH                          $PATH:$SCALA_HOME/bin
Windows                           %SCALA_HOME%       c:\Progra~1\Scala
%PATH%                      %PATH%;%SCALA_HOME%\bin

Now you can simply type “scala” in the terminal to start the scala shell.

Screenshot from 2014-11-04 19:38:38

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s