我用 OSX Lion 在我的 Mac 上安装了 scalding。当我运行 word count.scala 程序来测试安装时,我收到以下错误消息:
scalac -classpath /var/folders/_j/_7d75_hj79133bcm7xrqzvz80000gn/T/maven/hadoop-core-0.20.2.jar:/var/folders/_j/_7d75_hj79133bcm7xrqzvz80000gn/T/maven/log4j-1.2.15.jar:/var/folders/_j/_7d75_hj79133bcm7xrqzvz80000gn/T/maven/commons-httpclient-3.1.jar:/var/folders/_j/_7d75_hj79133bcm7xrqzvz80000gn/T/maven/commons-cli-1.2.jar:/var/folders/_j/_7d75_hj79133bcm7xrqzvz80000gn/T/maven/zookeeper-3.3.4.jar:/Users/BessonPascal/Desktop/scalding/target/scalding-assembly-0.8.0.jar: -d /var/folders/_j/_7d75_hj79133bcm7xrqzvz80000gn/T/script-build /Users/BessonPascal/Desktop/wordCount.scala
error: scala.tools.nsc.MissingRequirementError: object scala not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:655)
at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:605)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)
at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:814)
at scala.tools.nsc.Global$Run.<init>(Global.scala:697)
at scala.tools.nsc.Main$.process(Main.scala:105)
at scala.tools.nsc.Main$.main(Main.scala:123)
at scala.tools.nsc.Main.main(Main.scala)
error: fatal error: object scala not found.