CentOS 6: Install Scala

Versions

  1. CentOS 6.5
  2. Oracle Java JDK 1.7
  3. Scala 2.11.1

Install

Note
you can get other versions at http://www.scala-lang.org/download/all.html

Configure

Add to PATH, edit /etc/profile.d/scala.sh

Load into this session:

Verify

6 thoughts on “CentOS 6: Install Scala

  1. Tim Ellis

    If like me you’ve administered a few systems, and adding into $PATH makes you recoil in horror, it seems you can actually install Scala to a standard location and it works just fine. Do the following as root user:

    #!/bin/bash
    cd
    wget http://downloads.typesafe.com/scala/2.11.4/scala-2.11.4.tgz
    tar -zxvf scala-2.11.4.tgz
    mv scala-2.11.4 /usr/local/lib/
    cd /usr/local/lib/
    ln -s scala-2.11.4 scala
    cd /usr/local/bin
    ln -s /usr/local/lib/scala/bin/scala ./
    cd
    scala -version

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">