Installing Scala 2.9 on Ubuntu

NOTE: This is a very old post that I’ve migrated from my blogger account.

I have matured since then and continue to learn, striving to remain humble with a mindset of humility.


The creator of Scala: Dr. Martin Odersky

Installing Scala 2.9 on Ubuntu

Steps to Install Scala (Latest Version as of Writing: 2.9)

1. Download Scala

Open your browser and go to the Scala downloads page.

Find the appropriate package for Unix, Mac OS X, or Cygwin, and either download it manually or copy the direct link to the package.

2. Open Terminal & Navigate to Root

1
cd /

3. Create /opt Directory (If It Doesn’t Exist)

Ubuntu does not include an /opt directory by default, so create one manually:

1
sudo mkdir /opt  

4. Navigate to /opt

1
cd /opt  

5. Download Scala

Replace the version number with the latest available if necessary:

1
sudo wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1.tgz  

6. Extract the Package

1
sudo tar zxvf scala-2.9.0.1.tgz  

7. Remove the Archive File

1
sudo rm scala-2.9.0.1.tgz  

8. Add Scala to Your PATH

Edit your ~/.bashrc file to include Scala’s binary path:

1
nano ~/.bashrc  

Add the following line at the end of the file:

1
export PATH=/opt/scala-2.9.0.1/bin:$PATH  

9. Apply the Changes

1
source ~/.bashrc  

References

Desiderata by Max Ehrmann

Go placidly amid the noise and the haste, and remember what peace there may be in silence. As far as possible without surrender be on good terms with all persons. Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant, they too have their story. Avoid loud and aggressive persons, they are vexations to the spirit.

If you compare yourself with others, you may become vain or bitter; for always there will be greater and lesser persons than yourself. Enjoy your achievements as well as your plans. Keep interested in your own career, however humble; it is a real possession in the changing fortunes of time.

Exercise caution in your business affairs, for the world is full of trickery. But let not this blind you to what virtue there is; many persons strive for high ideals, and everywhere life is full of heroism. Be yourself. Especially do not feign affection. Neither be cynical about love; for in the face of all aridity and disenchantment it is as perennial as the grass. Take kindly the counsel of the years, gracefully surrendering the things of youth.

Nurture strength of spirit to shield you in sudden misfortune. But do not distress yourself with dark imaginings. Many fears are born of fatigue and loneliness. Beyond a wholesome discipline, be gentle with yourself. You are a child of the universe, no less than the trees and the stars; you have a right to be here. And whether or not it is clear to you, no doubt the universe is unfolding as it should.

Therefore, be at peace with God, whatever you conceive Him to be. And whatever your labors and aspirations in the noisy confusion of life, keep peace in your soul. With all its sham, drudgery and broken dreams; it is still a beautiful world. Be cheerful.

Strive to be happy.

Built with Hugo
Theme Stack designed by Jimmy