Rocky8.9普通用户安装Singularity

创建存放安装包的目录

mkdir ~/pkg && cd ~/pkg

下载最新版本的Singularity包

wget https://github.com/sylabs/singularity/releases/download/v4.1.2/singularity-ce-4.1.2.tar.gz

解压包

tar -zxvf singularity-ce-4.1.2.tar.gz

创建安装目录

mkdir -p /home/sysadm/sunty/software/Singularity/4.1.2

安装依赖

dnf install -y libseccomp-devel glib2-devel fuse3-devel fuse-devel

编译安装

cd singularity-ce-4.1.2
./mconfig --prefix=/home/sysadm/sunty/software/Singularity/4.1.2
make -j -C builddir
make -C builddir install

写入环境变量

echo 'export PATH=/home/sysadm/sunty/software/Singularity/4.1.2/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

测试使用

singularity --version