$ 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
大佬救命🆘