Trouble trying to install scala on Mac M1

Viewed 52

I would like to get started with scala. I have a Mac M1 computer and so I follow the instructions on this reddit post which seems to be the same as in the official website. So it do

$ brew install coursier/formulas/coursier
$ cs setup

for which the output is (output of cs setup)

Checking if a JVM is installed
Found a JVM installed under /Users/johnsmith/Library/Caches/Coursier/arc/https/github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_mac_hotspot_8u292b10.tar.gz/jdk8u292-b10/Contents/Home.
  Should we update ~/.profile, ~/.config/zsh/.zprofile, ~/.bash_profile? [Y/n] y

Checking if ~/Library/Application Support/Coursier/bin is in PATH
  Should we add ~/Library/Application Support/Coursier/bin to your PATH via ~/.profile, ~/.config/zsh/.zprofile, ~/.bash_profile? [Y/n] y

Checking if the standard Scala applications are installed
  Found ammonite
  Found cs
  Found coursier
  Found scala
  Found scalac
  Found scala-cli
  Found sbt
  Found sbtn
  Found scalafmt

Apparently this should install the following

s itself, to further manage your Scala environment

scala-cli, a convenient tool to compile / run / package Scala code

scala, the Scala REPL

scalac, the Scala compiler

sbt and sbtn, the sbt build toold

ammonite, an enhanced REPL for Scala

scalafmt, the Scala code formatter

but I cannot acces any of them. When I do for instance

scala -version

I get

zsh: command not found: scala
0 Answers
Related