我下载了rubyinstaller-2.0.0-p247和DevKit-mingw64-64-4.7.2-20130224-1432-sfx 按照https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
中的所有步骤操作我收到以下错误: -
ruby 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.
任何人都可以帮助我。
答案 0 :(得分:0)
您似乎没有安装rubygems
,这是devkit
我认为您的错误是因为您在命令行中使用gems
。尝试使用gem -v
,您会发现它会起作用。如果您使用单数gem
,则可以触发gem install rails
以获取它,以便您能够直接安装rails