Singularity v3.9.4 安装 - mconfig 不在 git 存储库中并且未找到 VERSION 文件

Singularity v3.9.4 Installation - mconfig not inside a git repository and no VERSION file found

我正在尝试在安装 Go 后安装 Singularity。我已经确认 Go 已经安装成功:

$ go version
go version go1.17.6 linux/amd64

之后,我运行执行以下命令:

$ export VERSION=3.9.4
$ wget https://github.com/sylabs/singularity/archive/refs/tags/v${VERSION}.tar.gz
$ tar -xzf v${VERSION}.tar.gz
$ cd singularity-${VERSION}

$ ./mconfig # This is where it fails
E: Not inside a git repository and no VERSION file found. Abort.

您正在下载的 tarball 是为标签自动生成的 tarball,而不是发布 tarball。来自 release page:

Source Code

Please use the singularity-ce-3.9.4.tar.gz download below to obtain and install SingularityCE 3.9.4. The GitHub auto-generated 'Source Code' downloads do not include required dependencies etc.

使用正确 url 的工作片段:

export VERSION=3.9.4
wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-ce-${VERSION}.tar.gz && \
    tar xf singularity-ce-${VERSION}.tar.gz && \
    cd singularity-ce-${VERSION} && \
    ./mconfig