I am trying to install scala language on my work laptop (mac). Could someone let me know the installation commands if I am unable to use brew or coursier? I have downloaded the package from github directly but unsure of next steps.
When using courier download as given on scala website I get this error: Checking if the standard Scala applications are installed: Exception in thread "main" coursier.error.ResolutionError$CantDownloadModule: Error downloading io.get-coursier:apps:latest.release
I have a feeling that my works security does not allow this installation. Is there a way around it / manual install for scala?
Homebrew I cannot download as I am not allowed to give out passwords during installation.
You can try the command listed on their site for the Mac installation:
This should do everything on its own.
However, if you have admin rights, I recommend installing it via
brew
. Usingbrew
is the most popular and easiest way, and you will usebrew
a lot on the Mac:If you are not allowed to have admin rights, go to your IT department and have them install Scala for you via the
brew
command.If this is not possible, you can simply download the Scala binaries. For example, assuming you want Scala 2.13.10, just download and unzip the scala-2.13.10.tgz zip file at your desired location. After that, you will have to set up your
PATH
manually, to be able to use thescala
command in the command line:Here's a more detailed tutorial on this approach.