[英]The system cannot find the path specified when starting Ruby and Rails command prompt
I just started learning rails a week ago and everything worked until today.我一周前刚开始学习rails,直到今天一切正常。 Now when I start the Ruby command prompt, it says:现在,当我启动 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.
---
The paths for ruby and rails show up correctly. ruby 和导轨的路径正确显示。
I'm using Windows Vista 32-bit.我正在使用 Windows Vista 32 位。 Any help would be greatly appreciated, thanks!任何帮助将不胜感激,谢谢!
You've probably used "Ansicon" - a program to get the colors in windows prompt right.您可能已经使用过“Ansicon” - 一个在 windows 提示正确的程序中获取 colors 的程序。 If you installed it permanently with -i parameter and consequently moved/deleted its directory, it would lead to this error.如果您使用 -i 参数永久安装它并因此移动/删除其目录,则会导致此错误。 (I've just experienced it) (我刚刚经历过)
The solution is to renew the location of the ansicon data files or to remove the following registry entry:解决方案是更新 ansicon 数据文件的位置或删除以下注册表项:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
You can find more on this issue at http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/您可以在http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/找到有关此问题的更多信息
Good luck!祝你好运!
None of the answers above helped me.上面的答案都没有帮助我。 My issue was whenever i typed rail -v it gave me the same error.我的问题是每当我输入 rail -v 它都会给我同样的错误。 I had to install rails, i used the following command:我必须安装rails,我使用了以下命令:
gem install rails --no-document gem install rails --no-document
you can check out the following installation steps to get around the error:您可以查看以下安装步骤来解决该错误:
http://docs.railsbridge.org/installfest/windows http://docs.railsbridge.org/installfest/windows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.