Under Linux (Xubuntu 20.04 here), I have followed the following set of commands:
(installing go from the official website)
sudo tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
which gives me: go version go1.19.2 linux/amd64 and then I try to build hugo from source:
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install
which has finished without giving me any problems. However running hugo version gives me command not found: hugo error.
Since I don’t see any binary folders under the hugo directory, I then switched over to the latest tag and tried installing again.
Again no issues, program finishes, and I see no outputs whatsoever.
The problem started with not wanting to use snap packages and I now have a partially installed Hugo which I don’t even know how to remove.
Where are the Hugo binaries or how do I remove Hugo installed with go install?
As with echo $asdfasdf I’m just getting an empty line as a response which means it doesn’t exist.
I also don’t see a bin folder in the Hugo repository that I have cloned
Any ideas?
Edit: I have also checked the Go installation directory, /usr/local/go and it doesn’t exist since I didn’t install with sudo go install (it would require that permission).
I will install it directly from .tar.gz from the repos.