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 to just type scala
- this doesn't work.
The website infuriatingly says:
We assume that both the Scala software and the user environment are set up correctly.
How do I do that bit?
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.
Thank you
To run Scala from the command-line, download the binaries and unpack the archive. Start the Scala interpreter (aka the “REPL”) by launching scala from where it was unarchived. Start the Scala compiler by launching scalac from where it was unarchived.
We can start Scala REPL by typing scala command in console/terminal.
For OS X, I highly recommend Homebrew.
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.
If you don't already have Java installed, you can install that with brew cask install java
.
MacPorts or Fink may have something similar, but I prefer Homebrew.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With