不同的终端窗口,相同的位置,不同的结果?

发布于 2024-12-27 15:52:44 字数 325 浏览 5 评论 0原文

为什么当我

$ autotest

在左侧终端选项卡上运行 In Sample_app 时,我得到

没有 DRb 服务器正在运行。相反,在本地进程中运行...
..

但是在我右侧终端窗口的sample_app中我运行

$ autotest

并得到

-bash:自动测试:找不到命令

有人可以向我解释这个谜团吗?

Why when I run

$ autotest

In sample_app on my left terminal tab I get

No DRb server is running. Running in local process instead ...
..

But in sample_app on my right terminal window I run

$ autotest

and get

-bash: autotest: command not found

Can someone please explain this mystery to me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

银河中√捞星星 2025-01-03 15:52:44

两个终端会话中的 PATH 不相同:PATH 中的第一个目录是

/Users/lasernite/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin

vs。

/Users/lasernite/.rvm/gems/ruby-1.9.2-p290/bin
  • 使它们保持一致,会话的行为将相似。

The PATH is not the same in the two terminal sessions: The first directory in PATH is

/Users/lasernite/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin

vs.

/Users/lasernite/.rvm/gems/ruby-1.9.2-p290/bin
  • bring them into line and the sessions will behave alike.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文