官方文档:singularity/INSTALL.md at master · apptainer/singularity · GitHub
我的是centos7的系统,Ubuntu系统的安装命令有所不同
按照官方文档的教程一步一步来:
1.安装所需的依赖
运行命令:
# Install basic tools for compiling
sudo yum groupinstall -y 'Development Tools'
# Ensure EPEL repository is available
sudo yum install -y epel-release
# Install RPM packages for dependencies
sudo yum install -y \
libseccomp-devel \
squashfs-tools \
cryptsetup \
wget git
2.由于singularity是使用go语言编写的,所以我们需要安装go:
首先创建一个目录:
mkdir ~/go && cd ~/go
接下来设置一些参数,不设置也没关系:
export VERSION=3.8.4 # this is the singularity version, change as you need
下载go: