Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在以下路径 /Users/user1/bin/ 中有一个 Xcode 可执行文件“testexe” bash:testexe:找不到命令”
但是,当我提供完整路径 /Users/user1/bin/testexe 时,它会按预期运行。即使我的当前目录已经是 /Users/user1/bin。为什么?
添加/Users/user1/bin/到您的 PATH 变量
/Users/user1/bin/
export PATH=$PATH:/Users/user1/bin/
然后运行 textexe