cd /path/to git clone https://github.com/spack/spack.git
source /path/to/spack/share/spack/setup-env.sh
spack -V
spack compiler find
如果spack无法找到你的编译器,可使用以下命令手动添加。
spack compiler add /path/to/gcc(编译器安装路径)
spack compilers