Go: command not found

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=8

  • Distro version | bookworm 0

  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • Architecture | arm64

  • SBC model | RPi Zero 2 W (aarch64)

  • Power supply used | Original Power supply

  • SD card used | SanDisk ultra 32 GB

Additional Information (if applicable)

  • Software title | Go: Runtime environment and package installer
  • Was the software title installed freshly or updated/migrated? Yes fresh install

Steps to reproduce

  1. Install Go: Runtime environment and package installer from the dietpi-software list
  2. type go build

Expected behaviour

  • Compilation should start

Actual behaviour

  • -bash: go: command not found

Did you tried to logoff / login?

I didn’t try that. Instead, I used apt install golang and everything was fine.

I just tested it on my demo system and yes, you have to log out and log back in, to use the new path variable we set during installation.

[  OK  ] DietPi-Software | eval echo 'export PATH="$PATH:/usr/local/go/bin"' > /etc/bashrc.d/go.sh