Created
October 26, 2018 16:04
-
-
Save andreas-wilm/f349f35bf8f98f4975bb697e4dac27f3 to your computer and use it in GitHub Desktop.
Install Singularity3 on Amazon Linux2
This file contains 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
# https://www.sylabs.io/guides/3.0/user-guide/quick_start.html#quick-installation-steps | |
# https://unix.stackexchange.com/questions/1338/what-is-the-fedora-equivalent-of-the-debian-build-essential-package | |
sudo yum install make automake gcc gcc-c++ kernel-devel | |
sudo yum install openssl-devel libuuid-devel | |
# install go | |
export VERSION=1.11 OS=linux ARCH=amd64 | |
cd /tmp | |
wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz | |
sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz | |
rm -f go$VERSION.$OS-$ARCH.tar.gz | |
echo 'export GOPATH=${HOME}/go' >> ~/.bashrc | |
echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc | |
# install singularity | |
source ~/.bashrc | |
mkdir -p $GOPATH/src/github.com/sylabs | |
cd $GOPATH/src/github.com/sylabs | |
git clone https://github.com/sylabs/singularity.git | |
cd singularity | |
go get -u -v github.com/golang/dep/cmd/dep | |
cd $GOPATH/src/github.com/sylabs/singularity | |
./mconfig | |
make -C builddir | |
sudo make -C builddir install | |
# optional | |
rm -rf $GOPATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment