使Scala解释器正常工作 [英] Getting a Scala interpreter to work

查看:63
本文介绍了使Scala解释器正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Scala的新手.我已经下载了它,让它可以在Eclipse中运行,并且将在其中进行开发.但我无法使其在Terminal中工作.

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.

所有网站和书籍都说只输入scala-这是行不通的.

All sites and books say to just type scala - this doesn't work.

网站令人发指:

我们假设Scala软件和用户环境都是 正确设置.

We assume that both the Scala software and the user environment are set up correctly.

我该怎么做?

我对此很陌生,如果使用Jargon或假设对Scala的框架了解过多,将会破坏良好的响应.请保持简单.

I'm very new to this, and using Jargon or assuming too much knowledge of frameworks around Scala will ruin a good response; please keep it simple.

  • Mac OS X(10.6.7)
  • scala:2.9.0.1

谢谢

推荐答案

对于OS X,我强烈建议 Homebrew .

For OS X, I highly recommend Homebrew.

安装Homebrew 非常简单.安装完成后,您只需要运行brew install scala并且scala将被安装并准备就绪.本地酿造厂还距离brew install数不胜数.

The installation of Homebrew is incredibly easy. Once installed, you just need to run brew install scala and scala will be installed and ready to go. Homebrew also has tons of other goodies just a brew install away.

如果尚未安装Java,则可以使用brew cask install java进行安装.

If you don't already have Java installed, you can install that with brew cask install java.

MacPorts

MacPorts or Fink may have something similar, but I prefer Homebrew.

这篇关于使Scala解释器正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆