Go command not found

Problem:

You may encounter an error saying that the go command was not found:

sudo make install
bash: go: command not found
expr: syntax error: unexpected argument '14'
install -C ./lotus /usr/local/bin/lotus
install -C ./lotus-miner /usr/local/bin/lotus-miner
install -C ./lotus-worker /usr/local/bin/lotus-worker
...

Environment:

  • Mainnet
  • Calibnet
  • Devnet

Resolution

You can ignore this error during the sudo make install step; it does not affect the install.