1. To install the JDK first:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
After the installation is successful, you can see the version information in the terminal input java–version for the installation to succeed:
? ~ Java-versionjava Version "1.8.0_65" Java (tm) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot (tm) 64-bit Ser Ver VM (build 25.65-b01, Mixed mode)
2. Install Scala
To the Scala website, download the Scala SDK, address:
Extract:
TAR-ZXVF scala-2.11.7.tgz
Move the extracted files to the program installation path:
MV scala-2.11.7 ~/linyaolong.app/
Add the following environment configuration to the ~/.ZSHRC:
Export Scala_home=/users/linyaolong/linyaolong.app/scala-2.11.7export path= $PATH: $SCALA _home/bin
Application Environment configuration:
SOURCE ~/.ZSHRC
Now that Scala has been successfully installed on your MAC, you can see the version of Scala installed successfully at Terminal input Scala–version:
? ~ Scala-versionscala Code Runner version 2.11.7--Copyright 2002-2013, LAMP/EPFL
Setting up a Scala platform under MAC