How to install Scala on Mac OS X with MacPorts? I'm trying to install Scala following the advice at the official website:

sudo port install scala


But this gives me:

---&gt;  Fetching archive for scala
---&gt;  Attempting to fetch scala-2.7.7_2.darwin_10.x86_64.tbz2 from http://packages.macports.org/scala
---&gt;  Fetching scala
---&gt;  Verifying checksum(s) for scala
---&gt;  Extracting scala
---&gt;  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 &lt;http://guide.macports.org/#project.tickets&gt;


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.
Try installing Scala 2.9

sudo port install scala2.9


… or Scala 2.10

sudo port install scala2.10