Where was scala_home homebrew installed on OSX?

I am unable to get up and running despite scala

successful opening scala>

in terminal. I suspect it has something to do with the scala_home installation on my .bash_profile

, on my mac. current bash_profile What is the correct value for SCALA_HOME

, or how do you find the correct value? (he was homebrew)

And this is the scale-compile method: enter image description here cd to the bottom folder src

and scalac IntroducingScala.HelloWorld.scala

?

+3


source to share


1 answer


Homebrew usually tells you where it is installed if you do brew info <name>

. It usually points to /usr/local/opt/<name>

which will be a symbolic link to the current version you are working on.

When I run it brew info scala

, it also contains a helpful caveat:



==> Caveats
To use with IntelliJ, set the Scala home to:
/usr/local/opt/scala/idea

      

+1


source







All Articles