Error “command not found” after installing go-eval

前端 未结 5 713
醉梦人生
醉梦人生 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:38

    I'd like to add this in addition to the answers given.

    As a helpful tip, uou can always test your commands with the which command.

    Such as: which go

    If the command is not found, you know you have a PATH problem you need to address first.

    Then you can focus on finding the command with the find command.

    Such as: find / -name "go" -print 2>/dev/null

    The first slash is the directory to start the search, the argument to the -name is the command you're looking for and the -print gets a good results look. the 2>/dev/null sends results of directories that are not accessible to neverland (null) so that you do not need to see a bunch of errors.

    Using this process helps you quickly find the command in question and then you can add it to your PATH env variable and it becomes accessible as stated in the other answers.

提交回复
热议问题