Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm trying to install Scala following the advice at the official website:

sudo port install scala

But this gives me:

--->  Fetching archive for scala
--->  Attempting to fetch scala-2.7.7_2.darwin_10.x86_64.tbz2 from
--->  Fetching scala
--->  Verifying checksum(s) for scala
--->  Extracting scala
--->  Configuring scala
Error: Please use one of the numbered scala* ports instead.
Error: Target org.macports.configure returned: obsolete port
Log for scala is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_scala/scala/main.log
Error: Status 1 encountered during processing.
To report a bug, see <>

I'm completely new to both MacPorts and Scala, and don't know what "Please use one of the numbered scala* ports instead" means. What command should I use then?

I'm not too picky about the Scala version, but of course I'd prefer the latest stable one (currently 2.9.1).

NB: I know I could install Scala without MacPorts, but I'd rather use Macports to manage the installation if it's possible without much hassle.

share|improve this question

3 Answers 3

up vote 6 down vote accepted

Try installing Scala 2.9

sudo port install scala2.9

… or Scala 2.10

sudo port install scala2.10
share|improve this answer
Yep, that worked smoothly. Thanks! –  Jonik Nov 1 '11 at 19:58

Now, scala29 is obsolete. You need to install scala 2.9 or scala2.10:

sudo port install scala2.9
share|improve this answer
Welcome to Ask Different! You can always improve existing posts by editing them. There's no need to post another answer for each new version or version change. –  slhck Apr 28 '13 at 8:54

Your project's SBT config file can be used to download the latest version of Scala -- for the project. Of course this uses a little extra time for each project you set up, compared to having the latest Scala version installed already. The advantage is that SBT's repositories are always up to date with Scala releases, unlike Macports.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.