On Mac OSX computers with MacPorts installed, open a terminal window and type:
port list | grep scala
This will list all the Scala-related packages available. To install one (in this example the 2.11 version of Scala):
sudo port install scala2.11
(The 2.11
may change if you want to install a different version.)
All dependencies will automatically be installed and your $PATH
parameter updated. To verify everything worked:
which scala
This will show you the path to the Scala installation.
scala
This will open up the Scala REPL, and report the version number installed.