Command hugo not found

On Ubuntu 18, I installed Hugo as suggested here (from source):

mkdir $HOME/src
cd $HOME/src
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install --tags extended

I then went to my project folder and run:

hugo server -w

I got this error message:

Command ‘hugo’ not found, but can be installed with:

sudo apt install hugo

How to fix this ?

Thank you,
Billal BEGUERADJ

you built hugo from source. so you have to (for example)

  • have hugo in your PATH.
  • Copy the hugo binary in (for example) /usr/bin.
  • call hugo with the fullpath.

But if you’re not confident with Linux, just go the apt road.

Indeed, that was quite obvious when we install something from source, thank you very much :slight_smile: