显然,我必须修改路径变量:
echo $SHELL. 结果显示:/bin/bash。
以下是修改步骤:
1) Find your shell's profile script in your user folder. If you are not sure which shell you have, run echo $SHELL.
$ ls -a ~
. .. .bash_logout .bash_profile .bashrc Desktop Documents Downloads
Bash – .bash_profile, .profile, or .bash_login.
Zsh – .zshrc
Tcsh – .tcshrc, .cshrc or .login.
2) Add an export command to profile script.
export PATH=~/.local/bin:$PATH
This command adds a path, `~/.local/bin` in this example, to the current PATH variable.
3) Load the profile into your current session.
$ source ~/.bash_profile
这对我来说毫无意义:为什么我要运行
$ ls -a ~
?我已经运行了。export PATH=~/.local/bin:$PATH
而且它并没有改变任何东西。3也是一样的。
请指导如何让eb工作。谢谢。
更新:echo $PATH给出了以下结果:
/Users/ME/bin/bash:/Users/ME/bin/bash.:/Users/ME/.local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/mysql-5.7.11-osx10.9-x86_64/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Users/ME/.local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/mysql-5.7.11-osx10.9-x86_64/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet
echo $PATH
输出什么? - helloV