简体   繁体   English

尝试在Ruby on Rails上使用时出错

[英]Error trying to use Ruby on Rails

It's supposed that I installed Ruby on Rails using RailsInstaller (Windows), but when I try to use the command: 假定我使用RailsInstaller(Windows)安装了Ruby on Rails,但是当我尝试使用以下命令时:

rails -v

The command prompt shows something like: 命令提示符显示如下:

"System can not find the specified path." “系统找不到指定的路径。”

I've uninstalled Rails with 'gem' command and reinstall it, but error still alive. 我已经用'gem'命令卸载了Rails并重新安装了它,但是错误仍然存​​在。

Is there another way to install Ruby on Rails? 还有另一种安装Ruby on Rails的方法吗? How can I solve this problem? 我怎么解决这个问题?

NOTE: Ruby\\bin is in PATH variable. 注意: Ruby \\ bin在PATH变量中。

I found a solution: installing the previous version of RailsInstaller. 我找到了解决方案:安装先前版本的RailsInstaller。

I was trying to use: railsinstaller-3.2.0 (Ruby 2.2.4, Rails 4.2) 我正在尝试使用:railsinstaller-3.2.0(Ruby 2.2.4,Rails 4.2)

It worked good with: railsinstaller-3.1.1 (Ruby 2.1.8, Rails 4.2) 适用于:railsinstaller-3.1.1(Ruby 2.1.8,Rails 4.2)

NOTE: I'm using W7 OS. 注意:我正在使用W7 OS。

Check out the answer on this one. 看看这个答案。 You have to add rails to path. 您必须将rails添加到path。

Installing Ruby on Rails on windows 在Windows上安装Ruby on Rails

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

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