Scala 2.11.7 Installation on Ubuntu 14.04

Hi friends,

Scala is a general-purpose programming language.
Mostly we are going to use Scala for Spark Programming.
In order to do so, we are going to start off with the installation of Scala 2.11.7 on Ubuntu 14.04

Following is the installation file I used for doing Scala 2.11.7 Installation.

Following are the steps which you need to follow in order to install Scala 2.11.6 on Ubuntu 14.04
Assumptions : username is hduser
Step 1 : JAVA Installation
If you have already installed JAVA, then you can skip this step.
If JAVA is not installed, then please follow below steps in order to install JAVA 1.7
command 1 : sudo apt-get update
command 2 : sudo apt-get install openjdk
Once above commands are executed successfully, then you can run following command for verification.
$java -version
Above command should give you output which might look something like this.
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b13)
Java HotSpot(TM) Client VM (build 25.0-b02, mixed mode)
JAVA version may be different based on your installation.
Step 2 : Download Scala Package.
Step 3 : Extract Scala Package
$sudo cp scala-2.11.7.tgz /usr/local
$cd /usr/local
$sudo tar -xvf scala-2.11.7.tgz
$sudo mv scala-2.11.7 scala
Step 4 : Update .bashrc file with following contents
export SCALA_HOME=/usr/local/scala
$sudo nano .bashrc
press CTRL + X
press Y
press ENTER
Step 5 : SCALA Installation Verification
For verifying SCALA installation, you can run following command.
$scala -version
Above command's output looks something like this
Scala code runner version 2.11.7 — Copyright 2002-2013, LAMP/EPFL
If we are getting above output, it means SCALA is installed successfully.
This completes SCALA Installation.
Thanks for having a read.

Kindly let me know if you face any difficulty while doing the installation.


Published by milindjagre

I founded my blog four years ago and am currently working as a Data Scientist Analyst at the Ford Motor Company. I graduated from the University of Connecticut pursuing Master of Science in Business Analytics and Project Management. I am working hard and learning a lot of new things in the field of Data Science. I am a strong believer of constant and directional efforts keeping the teamwork at the highest priority. Please reach out to me at for further information. Cheers!

One thought on “Scala 2.11.7 Installation on Ubuntu 14.04

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: