Friday, December 16, 2016

Install Scala in Mac OS or Linux

1) Download scala-X.XX.tgz from the official site

2) Unzip archive
       tar xzvf scala-X.XX.tgz

3) mkdir /usr/local/scala/

4) cp -R scala-X.XX/* /usr/local/scala/.

5)  vi  ~/.bash_profile

6) Add scala/bin folder to your PATH
        export PATH=/usr/local/scala/bin:$PATH

Verify the Installation

$ scala
cat: /release: No such file or directory
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions for evaluation. Or try :help.

scala>

No comments:

Post a Comment