Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
hpc:tutorials:singularity:singularity_with_wsl [2024/09/27 19:04] – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | hpc:tutorials:singularity:singularity_with_wsl [2024/10/04 21:45] (aktuell) – | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ==== Singularity with WSL 2 ==== | ||
+ | This tutorial aims to install Singularity 4.0.2 on your Windows machine and is in most parts a direct extract from the '' | ||
+ | |||
+ | === Prerequisites === | ||
+ | |||
+ | == 1. Activate WSL == | ||
+ | |||
+ | In a Windows PowerShell, run following command as an administrator. You can get an administrator PowerShell by clicking the Windows icon, searching for " | ||
+ | < | ||
+ | wsl --install | ||
+ | </ | ||
+ | WSL will then be available from your Start menu. | ||
+ | |||
+ | == 2. Install Dependencies == | ||
+ | The first thing to do is to update your Linux distribution (the default WSL distribution is Ubuntu, if you change it this command may be different): | ||
+ | < | ||
+ | sudo bash -c 'apt update && apt upgrade -y' | ||
+ | sudo apt install -y \ | ||
+ | autoconf \ | ||
+ | automake \ | ||
+ | cryptsetup \ | ||
+ | git \ | ||
+ | libfuse-dev \ | ||
+ | libglib2.0-dev \ | ||
+ | libseccomp-dev \ | ||
+ | libtool \ | ||
+ | pkg-config \ | ||
+ | runc \ | ||
+ | squashfs-tools \ | ||
+ | squashfs-tools-ng \ | ||
+ | uidmap \ | ||
+ | wget \ | ||
+ | zlib1g-dev | ||
+ | </ | ||
+ | |||
+ | Then install //go//. If you have go installed previously, be sure to remove ''/ | ||
+ | < | ||
+ | export VERSION=1.21.4 OS=linux ARCH=amd64 | ||
+ | sudo rm -rf / | ||
+ | wget -O / | ||
+ | sudo tar -C /usr/local -xzf / | ||
+ | # make go available for usage: | ||
+ | echo ' | ||
+ | source ~/.bashrc | ||
+ | </ | ||
+ | |||
+ | === Install Singularity === | ||
+ | |||
+ | All Singularity releases can be found here: | ||
+ | https:// | ||
+ | |||
+ | We will continue with 4.0.2, so we will fetch and compile the code. After successful compilation it will be installed on your system: | ||
+ | < | ||
+ | wget -O / | ||
+ | tar -C /tmp -xvf / | ||
+ | cd / | ||
+ | make -C builddir && sudo make -C builddir install | ||
+ | </ | ||
+ | |||
+ | Your Singularity installation can now be tested via | ||
+ | < | ||
+ | singularity --version | ||
+ | </ | ||
+ | |||
+ | If everything went well, the output should be | ||
+ | < | ||
+ | singularity-ce version 4.0.2 | ||
+ | </ |