-bash: grin: command not found

Trying to build Grin on a VM on Google Cloud:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 2
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel® Xeon® CPU @ 2.30GHz

Followed the instructions from this page: grin/build.md at master · mimblewimble/grin · GitHub

  • Everything downloaded without errors.
  • target/release/grin opens up the app and syncs to the network.
  • “grin help” returns: “-bash: grin: command not found”
  • in fact, “grin” with any command after returns “-bash: grin: command not found”

Same deal with the miner. Followed instructions here: https://github.com/mimblewimble/grin-miner/blob/master/doc/build.md

  • downloads without errors
  • target/debug/grin-miner opens the app
  • once open however it says “Connection Status: Can’t establish server connection to 127.0.0.1:13416. Will retry every 5 seconds”
  • target/debug/plugins/* returns: “Segmentation fault” (no idea what that means)

Any help/advice would be greatly appreciated. Thanks :slight_smile:

You could add $HOME/grin/target/release to your PATH environment variable, assuming you installed grin in your home dir.

Thanks! That got “grin” working as well as the wallet and stuff.

The miner still has the same problem though:

  • target/debug/grin-miner opens the app, but then is says under Connection Status: “Can’t establish server connection to 127.0.0.1:13416. Will retry every 5 seconds”
  • target/debug/plugins/* returns “Segmentation fault”

Any ideas on how to fix these? Thanks