windows 系统在启动 Ruby 和 Rails 命令提示符时找不到指定的路径
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6637922/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The system cannot find the path specified when starting Ruby and Rails command prompt
提问by mikey10
I just started learning rails a week ago and everything worked until today. Now when I start the Ruby command prompt, it says:
我一周前才开始学习 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.
---
The paths for ruby and rails show up correctly.
ruby 和 rails 的路径正确显示。
I'm using Windows Vista 32-bit. Any help would be greatly appreciated, thanks!
我使用的是 Windows Vista 32 位。任何帮助将不胜感激,谢谢!
回答by Juraj Masar
You've probably used "Ansicon" - a program to get the colors in windows prompt right. If you installed it permanently with -i parameter and consequently moved/deleted its directory, it would lead to this error. (I've just experienced it)
您可能已经使用过“Ansicon”——一个让 Windows 提示正确显示颜色的程序。如果您使用 -i 参数永久安装它并因此移动/删除其目录,则会导致此错误。(我刚刚经历过)
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!
祝你好运!
回答by Edmundo Martinez
回答by iceveda06
None of the answers above helped me. My issue was whenever i typed rail -v it gave me the same error. I had to install rails, i used the following command:
上面的答案都没有帮助我。我的问题是每当我输入 rail -v 它都会给我同样的错误。我必须安装 rails,我使用了以下命令:
gem install rails --no-document
gem install rails --no-document
you can check out the following installation steps to get around the error:
您可以查看以下安装步骤来解决该错误: