Error “command not found” after installing go-eval

前端 未结 5 703
醉梦人生
醉梦人生 2020-12-09 08:56

I\'m trying to run Go in an interactive mode.

I want to use go-eval for that, I followed their README instructions:

  • I ran
5条回答
  •  失恋的感觉
    2020-12-09 09:35

    You need to add GOPATH/bin to PATH.

    PATH="$GOPATH/bin:$PATH"
    

    Update: Starting with Go 1.8, GOPATH defaults to $HOME/go if not set. The above will not work if GOPATH is not explicitly set.

    To set both, add this to your .profile:

    export GOPATH="$HOME/go"
    PATH="$GOPATH/bin:$PATH"
    

提交回复
热议问题