Forked from cory-weller/install-singularity.sh
Last active
November 27, 2023 05:16
-
-
Save pnsinha/624f77b033897c699f91cf37b48b36f6 to your computer and use it in GitHub Desktop.
Script to install singularity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# prereqs | |
sudo apt update -y && sudo apt install -y \ | |
build-essential \ | |
libssl-dev \ | |
uuid-dev \ | |
libgpgme11-dev \ | |
squashfs-tools \ | |
libseccomp-dev \ | |
wget \ | |
pkg-config \ | |
git \ | |
cryptsetup | |
# install GO | |
# if necessary, remove old version of GO e.g. | |
sudo rm -rf /usr/local/go | |
export GOVERSION=1.17.3 OS=linux ARCH=amd64 # change this as you need | |
wget -O /tmp/go${GOVERSION}.${OS}-${ARCH}.tar.gz \ | |
https://dl.google.com/go/go${GOVERSION}.${OS}-${ARCH}.tar.gz | |
sudo tar -C /usr/local -xzf /tmp/go${GOVERSION}.${OS}-${ARCH}.tar.gz | |
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc | |
source ~/.bashrc | |
# download singularity | |
git clone https://github.com/hpcng/singularity.git | |
cd singularity | |
#git checkout v3.8.4 | |
# compile singularity | |
./mconfig | |
cd ./builddir | |
make | |
sudo make install | |
cd | |
rm -rf singularity/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment