我想从scala开始。我有一台Mac M1电脑,所以我遵循在这篇编辑文章上的指令,这似乎和官方网站中的一样。它也是如此
$ brew install coursier/formulas/coursier
$ cs setup
输出为(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
显然,这应该安装以下内容
S本身,以进一步管理Scala环境。
Scala -cli,编译/运行/打包Scala代码的方便工具
Scala ,Scala
scalac,Scala编译器
sbt 和sbtn,sbt构建到原来。
ammonite,一种用于Scala的增强REPL
scalafmt,Scala代码格式化程序
但我不能接触他们中的任何一个。例如,当我做的时候
scala -version
我得到了
zsh: command not found: scala
发布于 2022-09-27 18:14:17
简单地做这个
brew install scala
https://stackoverflow.com/questions/73750923
复制相似问题