繁体   English   中英

Ruby on Rails安装错误无法安装Rails

[英]Ruby on rails Installation error not able to install rails

我下载了rubyinstaller-2.0.0-p247和DevKit-mingw64-64-4.7.2-20130224-1432-sfx从https://github.com/oneclick/rubyinstaller/wiki/Development-Kit执行所有步骤

我收到以下错误:

红宝石2.0.0p247(2013-06-27)[i386-mingw32]

C:\Users\NISHA>cd ..

C:\Users>cd..

C:\>cd Ruby200

C:\Ruby200>ruby -v
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]

C:\Ruby200>gems -v
'gems' is not recognized as an internal or external command,
operable program or batch file.

C:\Ruby200>cd..

C:\>cd Devkit

C:\Devkit>ruby dk.rb init
[INFO] found RubyInstaller v2.0.0 at C:/Ruby200

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\Devkit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby200

C:\Devkit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby200'
[INFO] Installing 'C:/Ruby200/lib/ruby/site_ruby/devkit.rb'

C:\Devkit>rails -v
'rails' is not recognized as an internal or external command,
operable program or batch file.

谁能帮我这个忙。

看起来好像没有安装rubygems ,这是devkit的职责

这里有一个很好的教程

我认为您的错误是因为您在命令行中使用了gems 尝试使用gem -v ,您会发现它会起作用。 如果您使用单个gem ,则可以启动gem install rails以获取它,以便能够直接安装rails

暂无
暂无

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

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