zsh: command not found: go-callvis?

$ go get -u github.com/ofabry/go-callvis

准备跑一下go-callvis看下包间调用关系,结果terminal提示找不到这个go-callvis命令:

$ go-callvis ./

zsh: command not found: go-callvis
echo $PATH

/Users/congjunhua/go/go1.20.1/bin:/Users/congjunhua/.nvm/versions/node/v16.13.0/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Users/congjunhua/.cargo/bin:/usr/local/bin:/usr/local/mysql/bin
$ cat /etc/profile

# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
        eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
        [ -r /etc/bashrc ] && . /etc/bashrc
fi
$ cat /etc/paths

/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
$ cat ~/.bash_profile

cat: /Users/congjunhua/.bash_profile: No such file or directory
$ cat ~/.bash_login

cat: /Users/congjunhua/.bash_login: No such file or directory
$ cat ~/.profile

. "$HOME/.cargo/env"
只找到这个文件。
$ cat ~/.bashrc

cat: /Users/congjunhua/.bashrc: No such file or directory

是环境变量的问题吗?

蹲个Linux大佬救命🆘

阅读 2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进