Bash Mac无法从一个文件夹访问可执行文件

Bash Mac无法从一个文件夹访问可执行文件,bash,phantomjs,osx-yosemite,Bash,Phantomjs,Osx Yosemite,我试图使用来自两个不同文件夹的phantomJs,但是KoGoal找不到它,即使他们都在同一个文件夹中查找它 从Maestro文件夹: Geoffreys-MacBook-Pro:maestro gkburdett$ which phantomjs /usr/local/bin/phantomjs Geoffreys-MacBook-Pro:maestro gkburdett$ phantomjs --version 1.9.8 从KoGoal文件夹: Geoffreys-MacBook-Pr

我试图使用来自两个不同文件夹的phantomJs,但是KoGoal找不到它,即使他们都在同一个文件夹中查找它

从Maestro文件夹:

Geoffreys-MacBook-Pro:maestro gkburdett$ which phantomjs
/usr/local/bin/phantomjs
Geoffreys-MacBook-Pro:maestro gkburdett$ phantomjs --version
1.9.8
从KoGoal文件夹:

Geoffreys-MacBook-Pro:kogoal gkburdett$ which phantomjs
/usr/local/bin/phantomjs
Geoffreys-MacBook-Pro:kogoal gkburdett$ phantomjs --version
-bash: /bin/phantomjs: No such file or directory
OS10.10.2


我甚至不知道该在这里查找什么。

您是否切换了用户?或者新的外壳。这似乎没有任何意义做一个ls-lsa/usr/local/binI只是重置计算机…每次都能工作!