Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 启动Ruby和Rails命令提示符时,系统找不到指定的路径_Ruby On Rails_Windows_Heroku - Fatal编程技术网

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

Ruby on rails 启动Ruby和Rails命令提示符时,系统找不到指定的路径,ruby-on-rails,windows,heroku,Ruby On Rails,Windows,Heroku,我一周前才开始学习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

我一周前才开始学习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和rails的路径显示正确

我使用的是32位Windows Vista。任何帮助都将不胜感激,谢谢

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

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

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
有关此问题的更多信息,请访问


祝你好运

我在Windows7中遇到了同样的问题,通过将Git/bin目录添加到系统路径变量(找到了答案)解决了这个问题。希望这对别人有帮助

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

gem安装rails--无文档

您可以检查以下安装步骤以避免错误:


您能提供更多关于您的环境的信息吗?我使用Rails 3.0.7、Ruby 1.8.7、git进行版本控制,Heroku进行部署。我尝试卸载Rails安装程序并重新安装,但同样的问题仍然存在。没有办法吗?我不能git提交或推送到Heroku而不让这个消息一次又一次地出现。我很确定这与git有关。每当我尝试提交或执行任何与git相关的操作时,都会弹出消息。有什么想法吗?谢谢Juraj,你是个救命恩人!我已经找了好几个小时了!非常感谢。