Getting a Scala interpreter to work

前端 未结 8 961
轻奢々
轻奢々 2020-12-24 05:19

I\'m very new to Scala. I have downloaded it, got it working in Eclipse where I\'ll be developing it; but I can\'t make it work in Terminal.

All sites and books say

8条回答
  •  难免孤独
    2020-12-24 05:58

    Scala recommends using Homebrew to install the Typesafe stack for Scala 2.9.2.

    brew install scala sbt maven giter8
    

    Homebrew will install soft links in /usr/local/bin for sbt, scala, scalac, scaladoc, scalap, fsc and g8. Follow the soft links to its final referent in order to determine where $SCALA_HOME needs to be. $SCALA_HOME should contain bin/scala and lib/scala-compiler.jar.

    Typesafe recommends using sbt console instead of scala to get the interpreter going, because sbt will also manage library dependencies to libraries such as Akka. That said, if you want to use scala, scalac, fsc, scalac and scaladoc directly, you may need to run a chmod +x on the referents of the soft links.

提交回复
热议问题