在Ruby Rails Install上找不到rake

Lev*_*ith 15 ruby rake

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>gem install rake
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...

C:\Windows\system32>rake
C:/Program Files (x86)/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path': can
't find executable rake for rake-0.8.7 (Gem::Exception)
        from C:/Program Files (x86)/Ruby192/bin/rake:19:in `<main>'

C:\Windows\system32>
Run Code Online (Sandbox Code Playgroud)

为什么我的系统找不到rake命令?我应该在哪里开始调试问题?

更新1

我正在使用ruby 1.9.2并使用windows的ruby安装程序安装它(http://rubyinstaller.org/)

Lui*_*ena 37

这个问题是Ruby 1.9.2捆绑版Rake的问题.您需要rake.gemspec从gem规范文件夹中删除包含的内容.

请参阅RubyInstaller组中的此主题,特别是Ruby-Forums中此解决方案的链接.

BTW:建议:避免将Ruby安装到带空格的路径中(Program Files).我预测你将来的安装会遇到很多问题.