簡體   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