New to Scala and I installed Scala using homebrew. When I type scala in terminal, it is giving me the following error:
$ scala
Welcome to Scala 2.13.7 (OpenJDK 64-Bit Server VM, Java 17.0.1).
Type in expressions for evaluation. Or try :help.
/opt/homebrew/Cellar/scala/2.13.7/libexec/bin/scala: line 25: 53932 Illegal instruction: 4 "$@"
What might be the issue and how can I fix? I am using M1 Mac with Big Sur.