From 79dc116c44edcb58328c62a5ed7a4ffa31faab16 Mon Sep 17 00:00:00 2001 From: mreul Date: Mon, 10 Jun 2024 13:16:25 +0000 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 8edfcc8..885da5e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,32 @@ chmod +x install_mailhog_as_service.sh ./install_mailhog_as_service.sh ``` +## Workaround bij foutmelding in Ubuntu 22.04: "note: module requires Go 1.20" +``` +- Download gewenste versie van Go: +wget -c https://go.dev/dl/go1.22.0.linux-amd64.tar.gz + +- Ga naar de map waar het bestand staat en pak het uit: +sudo tar -C /usr/local/ -xzf go1.22.0.linux-amd64.tar.gz + +- Set PATH Environment Variable +export PATH=$PATH:/usr/local/go/bin + +- Voeg onderstaande code toe aan .profile om het definitief te maken: +# set PATH so it includes /usr/local/go/bin if it exists +if [ -d "/usr/local/go/bin" ] ; then + PATH="/usr/local/go/bin:$PATH" +fi + +- reload .profile (let op: mét punt!) +. ~/.profile + +- Controleer welke versie van Go actief is: +go version + +- Installeer nu Mailhog met het installatie script +``` + ## Na de installatie ``` systemctl enable mailhog