系统在启动Ruby和Rails命令提示符时找不到指定的路径 [英] The system cannot find the path specified when starting Ruby and Rails command prompt

查看:265
本文介绍了系统在启动Ruby和Rails命令提示符时找不到指定的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一周前我刚开始学习rails,一切都运行到今天。现在,当我启动Ruby命令提示符时,它说:

 系统找不到指定的路径。 

#在Rails环境配置下。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。

---

ruby​​和rails的路径显示正确。

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

解决方案

您可能使用过Ansicon - 一个程序来获取颜色Windows提示权。如果您使用-i参数永久安装它并因此移动/删除其目录,则会导致此错误。 (我刚刚经历过)



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

  HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun 

你可以在 http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/



祝你好运!


I just started learning rails a week ago and everything worked until today. Now when I start the Ruby command prompt, it says:

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.

I'm using Windows Vista 32-bit. Any help would be greatly appreciated, thanks!

解决方案

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)

The solution is to renew the location of the ansicon data files or to remove the following registry entry:

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/

Good luck!

这篇关于系统在启动Ruby和Rails命令提示符时找不到指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆