Scala Installation - ChicagoBoothAnalytics/site GitHub Wiki
Scala is a powerful programming language combining functional programming and object-oriented programming. Scala is known for very high performance and is widely used in building large-scale distributed computing frameworks.
Go here to download a copy of Scala appropriate for your computer. Unpack / unzip the downloaded compressed file, and move the unpacked / unzipped folder to a location of your choice.
Then you need to add the path to the folder containing your Scala executable files to your system PATH so that your computer knows where to find them:
-
Mac:
- locate the
.bash_profilefile in your home folder - open the
.bash_profilefile in a text editor - add the following line:
export PATH="<path to your Scala folder>/bin:PATH" - save the
.bash_profilefile and exit the text editor - launch a new command-line terminal window and verify by running command:
which scala, which should return the path to thescalaexecutable file.
- locate the
-
Windows:
- Go to Control Panel > System > Advanced System Settings > Environment Variables, look under the System Variable section for the variable
Path, and append the following path to the existing text:;<path to your Scala folder>/bin; - launch a new command-line terminal window and verify by running command:
where scala, which should return the path to thescala.batexecutable file.
- Go to Control Panel > System > Advanced System Settings > Environment Variables, look under the System Variable section for the variable