安装环境
CentOS虚拟机(图形界面)7.9
yum install -y git gcc
安装流程
cd
wget https://go.dev/dl/go1.22.2.linux-amd64.tar.gz
tar -C /usr/local -zxvf go1.22.2.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc
go env -w GOPROXY=https://goproxy.cn
git clone https://github.com/apptainer/apptainer.git
cd apptainer
./mconfig -b ./buildtree -p /opt/app/apptainer --with-suid
cd builddir
go mod tidy
vim Makefile
<
GOPROXY := https://goproxy.cn
>
make
make install