nosewheelie

Technology, mountain biking, politics & music.

Installing Scala 2.6.1. on Leopard

with 2 comments

A quick howto on installing Scala 2.6.1 on Mac OS X 10.5 Leopard. I assume a similar set of steps will work on Debian-based Linux distros.

Firstly install MacPorts, secondly install rlwarp & scala.

[/Users/atom] sudo port install rlwrap
...
--->  Attempting to fetch expat-2.0.1.tar.gz from http://downloads.sourceforge.net/expat
...
--->  Attempting to fetch libiconv-1.12.tar.gz from http://ftp.gnu.org/gnu/libiconv
...
--->  Attempting to fetch gettext-0.17.tar.gz from http://ftp.gnu.org/gnu/gettext
...
--->  Attempting to fetch gawk-3.1.5.tar.bz2 from http://ftp.gnu.org/gnu/gawk
...
--->  Attempting to fetch ncurses-5.6.tar.gz from http://ftp.gnu.org/gnu/ncurses
...
--->  Attempting to fetch rlwrap-0.24.tar.gz from http://utopia.knoware.nl/~hlub/uck/rlwrap/
...
--->  Installing rlwrap 0.24_0
--->  Activating rlwrap 0.24_0
--->  Cleaning rlwrap
[/Users/atom] sudo port install scala
--->  Fetching scala
--->  Attempting to fetch scala-2.6.1-final.tar.bz2 from http://www.scala-lang.org/downloads/distrib/files/
--->  Verifying checksum(s) for scala
--->  Extracting scala
--->  Configuring scala
--->  Building scala with target all
--->  Staging scala into destroot
--->  Installing scala 2.6.1_0
--->  Activating scala 2.6.1_0
--->  Cleaning scala

[/Users/atom] rlwrap scala
Welcome to Scala version 2.6.1-final.
Type in expressions to have them evaluated.
Type :help for more information.

scala>

I’ve not tested this in anger yet, but will be doing the patented Tony’s Scala course for the next few days so will have some time to comment on whether it stands up (e.g. most Java & Ruby devs roll their own installations rather than package managed ones).

Update: If you are using the IntelliJ IDEA plugin (more on that later) the home for the Scala SDK is /opt/local/share/scala/share/scala

Written by Tom Adams

January 8th, 2008 at 3:03 pm

Posted in Scala

2 Responses to 'Installing Scala 2.6.1. on Leopard'

Subscribe to comments with RSS or TrackBack to 'Installing Scala 2.6.1. on Leopard'.

  1. Why not:
    java -jar scala-2.6.1-final-installer.jar

    Admitedly I haven’t tried to parse XML with it - but surely that just relies on Java?

    Anonymous

    9 Jan 08 at 5:35 am

  2. Only as I’d rather use a package manager than a manual install if I can. I don’t know how far this will get you, when I do Ruby or Java I usually roll my own installations (build from source for Ruby and download the binary installer for Java) which gives me greater flexibility.

    Tom Adams

    9 Jan 08 at 9:14 am

Leave a Reply