繁体   English   中英

启动Ruby和Rails命令提示时系统找不到指定的路径

[英]The system cannot find the path specified when starting Ruby and Rails command prompt

我一周前刚开始学习rails,直到今天一切正常。 现在,当我启动 Ruby 命令提示符时,它会显示:

The system cannot find the path specified.

# Under Rails Environment Configuration.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

---

ruby 和导轨的路径正确显示。

我正在使用 Windows Vista 32 位。 任何帮助将不胜感激,谢谢!

您可能已经使用过“Ansicon” - 一个在 windows 提示正确的程序中获取 colors 的程序。 如果您使用 -i 参数永久安装它并因此移动/删除其目录,则会导致此错误。 (我刚刚经历过)

解决方案是更新 ansicon 数据文件的位置或删除以下注册表项:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

您可以在http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/找到有关此问题的更多信息

祝你好运!

我在 Windows 7 中遇到了同样的问题,并通过将 Git/bin 目录添加到系统路径变量来解决它(在此处找到答案)。 希望这对某人有帮助!

上面的答案都没有帮助我。 我的问题是每当我输入 rail -v 它都会给我同样的错误。 我必须安装rails,我使用了以下命令:

gem install rails --no-document

您可以查看以下安装步骤来解决该错误:

http://docs.railsbridge.org/installfest/windows

暂无
暂无

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

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