I tried to install Scala 2.12.1
on my Mac (El Capitan) via Homebrew and also by downloading the binaries from https://www.scala-lang.org/download/.
In both cases, whenever I run scala
(or scalac
, scaladoc
, etc) I get this printed to screen:
cat: /release: No such file or directory
The action is successful however. E.g. scala myscript.scala
works just fine, but that error message gets printed first.
Does anyone have an idea of why that's happening?
Opening up bin/scala
, there's a line:
java_release="$(cat $JAVA_HOME/release | grep JAVA_VERSION)"
My $JAVA_HOME
wasn't set. All fixed now.