PS: The contents of this article are mainly from the notes of Brother Ningshi.
1, download scala.tgz. Note. msi is a program under Windows and cannot be opened in Linux.
Http://www.scala-lang.org/download/2.11.6.html inside can be downloaded. Down, you can see the tgz format.
2. Create and copy to the Usr/scala folder.
In Linux Desktop Edition can not knock command. Open the computer directly, it contains all the folders under Linux.
3, unzip the folder.
When you unzip the folder directly, the scala-2.11.6 folder appears. Then just configure Scala so you don't need to repeat the installation.
4. Configure Scala's environment variables:
[Email protected] ~]# Vim/etc/profile
To add an environment variable:
#scala_home
#SCALA VARIABLES START
Export scala_home=/usr/scala-2.11.6
Export path= $PATH: $SCALA _home/bin
#SCALA VARIABLES END
PS: When the command is executed, the terminal will change to, press I or the Insert key. Then you can insert the configuration.
When the insertion is complete (remember to change the Scala version to your version), press the ESC key, and then press the ":" Colon. Execute command: Save and return to Terminal
5, is the configuration environment to take effect.
[[email protected] ~]# source/etc/profile make the configuration environment effective.
Detect if Scala is configured successfully
[Email protected] ~]# Scala
Install Scala under Linux