Rake无法在Windows上安装apriori.rb gem

时间:2011-10-31 12:48:44

标签: ruby install rake

非常直接:

C:\Ruby192>gem install apriori
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing apriori:
        ERROR: Failed to build gem native extension.

        "C:/Ruby192/bin/ruby.exe" -rubygems C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake RUBYARCHDIR=C:/Rub
y192/lib/ruby/gems/1.9.1/gems/apriori-0.2.2/lib RUBYLIBDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/apriori-0.2.2/lib
rake aborted!
no such file to load -- config/requirements

(See full trace by running task with --trace)


Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/apriori-0.2.2 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/apriori-0.2.2/./gem_make.out

我是红宝石和宝石的新手,但如果我说得对,抱怨的就是RakeFile:

require 'config/requirements'
require 'config/hoe' # setup Hoe + all gem configuration

但文件真的存在:

c:\Ruby192>ls -l C:/Ruby192/lib/ruby/gems/1.9.1/gems/apriori-0.2.2/config
total 2
-rw-r--r--    1 fgadotti Administ     2877 Oct 31 14:59 hoe.rb
-rw-r--r--    1 fgadotti Administ      655 Oct 31 14:59 requirements.rb

Windows路径可能有问题吗?出于某种原因阻止rake查找文件?

0 个答案:

没有答案