简体   繁体   English

MAC 10.10 Yosemite - 终端: - bash:找不到[SomeCommand]命令?

[英]MAC 10.10 Yosemite - Terminal: - bash: [SomeCommand] command not found?

I dont know why but when I write any commands in my terminal. 我不知道为什么,但是当我在终端上写任何命令时。 It always show me -bash:[SomeCommand] command not found. 它始终显示-bash:找不到[SomeCommand]命令。 I dont know if it's about my path -bash: /user/local/php5/bin:/user/local/mysql/bin: No such file or directory or anything else. 我不知道这是关于我的路径-bash:/ user / local / php5 / bin:/ user / local / mysql / bin:没有这样的文件或目录或其他任何东西。 It was my first time that I use the terminal and I don't know what happened. 这是我第一次使用终端,我不知道发生了什么。

You are missing the regular bin directories. 您缺少常规bin目录。 Here's what my $PATH looks like on a fresh Yosemite: 这是我的$ PATH在新鲜的优胜美地上的样子:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM