让 Scala 解释器工作 [英] Getting a Scala interpreter to work

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

问题描述

我对 Scala 很陌生.我已经下载了它,让它在 Eclipse 中运行,我将在那里开发它;但我不能让它在终端中工作.

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.

我该怎么做?

我对此很陌生,使用术语或假设过多的 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)
  • 斯卡拉:2.9.0.1

谢谢

推荐答案

对于 OS X,我强烈推荐 Homebrew.

For OS X, I highly recommend Homebrew.

安装 Homebrew 非常简单.安装后,您只需要运行 brew install scala 即可安装 scala 并准备就绪.Homebrew 还有很多其他的好东西,只需 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.

MacPortsFink 可能有类似的东西,但我更喜欢 Homebrew.

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

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

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