Archive for May, 2009

How to Install Scala on Mac

Apparently this is beneath the Scala documentation team.

  1. Download the most recent stable build
  2. $> tar zxvf scala-x.x.x.final.tgz
  3. Move the untarred directory to your preferred location; this will be SCALA_HOME
  4. Modify ~/.profile (or wherever you modify your PATH variable):
    • SCALA_HOME=/path/to/your/scala/directory
    • PATH=$SCALA_HOME/bin:$PATH
  5. $> source ~/.profile
  6. Done.

You should now be able to run the Scala interpreter ($> scala) from the command line. I've only just started with Scala so I don't know about compiling and deploying and all that good stuff yet. Hopefully that's in the documentation somewhere.