如何解决奇点3.6.2安装
我在linux mint中安装奇点3.6.2时遇到问题,我遵循https://sylabs.io/guides/3.0/user-guide/installation.html的说明。 我安装了依赖关系和Go。
然后我运行命令以安装最新版本:
export VERSION=3.6.2 && # adjust this as necessary \
mkdir -p $GOPATH/src/github.com/sylabs && \
cd $GOPATH/src/github.com/sylabs && \
wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz && \
tar -xzf singularity-${VERSION}.tar.gz && \
cd ./singularity && \
./mconfig
错误是:
Configuring for project `singularity' with languages: C,Golang
=> running pre-basechecks project specific checks ...
=> running base system checks ...
checking: host C compiler... cc
checking: host C++ compiler... c++
checking: host Go compiler (at least version 1.13)... not found!
mconfig: could not complete configuration
我要去了(去版本)
go version go1.15.2 linux/amd64
我不知道发生了什么! 非常感谢!
解决方法
该问题已在5099中报告。
# 5320还提到:
我删除了PPO python 3.6,它工作正常!
确保没有任何用户以root身份执行,其$ PATH与当前用户不同。
,我一直在遇到同样的错误。所有建议都表明您可能拥有旧版本的Go,这就是原因。但是事实证明,将Go和Singularity放置在正确的位置更为重要。
我发现这些文档https://github.com/hpcng/singularity/blob/release-3.5/INSTALL.md对于将目录放置在何处最有用和正确。
关键是要在GOPATH目录中克隆奇点:
默认情况下您将没有此目录,因此请先创建它
$ mkdir -p ${GOPATH}/src/github.com/sylabs && \
cd ${GOPATH}/src/github.com/sylabs && \
git clone https://github.com/sylabs/singularity.git && \
cd singularity
确保您的奇点在这里: {GOPATH} /src/github.com/sylabs/singularity
总结:
Go本身位于/usr/local/go
GOPATH类似于home/your_username/go
,而奇点将位于例如home/your_username/go/src/github.com/sylabs/singularity
如果有人遇到此问题,请按照此安装 guide。
sudo apt-get update && \
sudo apt-get install -y build-essential \
libseccomp-dev pkg-config squashfs-tools cryptsetup
sudo rm -r /usr/local/go
export VERSION=1.13.15 OS=linux ARCH=amd64 # change this as you need
wget -O /tmp/go${VERSION}.${OS}-${ARCH}.tar.gz https://dl.google.com/go/go${VERSION}.${OS}-${ARCH}.tar.gz && \
sudo tar -C /usr/local -xzf /tmp/go${VERSION}.${OS}-${ARCH}.tar.gz
echo 'export GOPATH=${HOME}/go' >> ~/.bashrc && \
echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc && \
source ~/.bashrc
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
sh -s -- -b $(go env GOPATH)/bin v1.21.0
mkdir -p ${GOPATH}/src/github.com/sylabs && \
cd ${GOPATH}/src/github.com/sylabs && \
git clone https://github.com/sylabs/singularity.git && \
cd singularity
git checkout v3.6.3
cd ${GOPATH}/src/github.com/sylabs/singularity && \
./mconfig && \
cd ./builddir && \
make && \
sudo make install
singularity version
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。