cd /path/to git clone https://github.com/spack/spack.git
source /path/to/spack/share/spack/setup-env.sh
spack compiler find
如果spack无法找到你的编辑器就需要手动加入,命令如下。
spack compiler add /path/to/gcc
/path/to/gcc表示gcc9.3.1编译器的安装路径。
spack compilers