【发布时间】:2013-06-04 07:18:07
【问题描述】:
我正在尝试在使用 64 位版本的 Windows、Ruby 2.0.0 和 DevKit 的 64 位 PC 上的 Windows 7 上使用 Nokogiri。我刚刚从ftp://ftp.zlatkovic.com/libxml/64bit/ 安装了xml2/xslt/iconv/zlib 库并将include/libxml2/libxml 移动到include/libxml;我想我可以调整 --with-xml2-include),然后安装 Nokogiri。它似乎可以很好地构建本机扩展。
当我尝试要求 Nokogiri 时,我得到:
C:/Users/echristopherson/Development/Ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require':LoadError: 126: The specified module could not be found. -
C:/Users/echristopherson/Development/Ruby/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.so
当我检查文件类型时:
file C:/Users/echristopherson/Development/Ruby/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.9/lib/nokogiri/nokogiri.so
它输出:
PE32+ executable for MS Windows (DLL) (console) Mono /.Net assembly.
我做错了什么?我使用gem install --pre nokogiri ... 得到相同的结果。
【问题讨论】: