简体   繁体   English

rails -v系统找不到指定的路径。 Windows 10

[英]rails -v The system cannot find the path specified. Windows 10

So I'm just starting an online full stack dev. 所以我才刚开始在线全栈开发。 course and am ultra new to coding in general so when I do my rails bundle install @ http://installfest.railsbridge.org/installfest/windows I have gone through the complete install and all updates needed but my rails -v is still not working even after re-installing everything, I'm using windows 10 64bit. 当然,对于编码而言,它是全新的,所以当我在Rails包中安装@ http://installfest.railsbridge.org/installfest/windows时,我已经完成了完整的安装和所有需要的更新,但是我的rails -v仍然不是即使重新安装所有内容后仍能正常工作,我使用的是Windows 10 64位。 And I'm stuck at this point and have spent lots of time trying to find out what the problem could be with nothing working yet? 我被困在这一点上,并花了很多时间试图找出问题,而没有任何工作呢? Attached is a screen shot if that helps. 如果有帮助,请附上屏幕截图。 rails -v Help please! rails -v请帮助!

You'll need to go to C:\\RailsInstaller\\Ruby2.0.0 and edit the .bat files (such as rails.bat). 您需要转到C:\\RailsInstaller\\Ruby2.0.0并编辑.bat文件(例如rails.bat)。 They have a hard-coded path that might be wrong. 它们具有可能错误的硬编码路径。 Change the path to: 将路径更改为:

@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF :WinNT
@"%~dp0ruby.exe" "%~dpn0" %*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM