我在nokogiri的gem中遇到了这个问题:
无法打开库'C:\Ruby187\lib\ruby\gems\1.8\gems\nokogiri-1.4.6-x86-mingw32\ext\nokogiri\libxml2.dll':未知
我读到我必须尝试1.5.0.beta3版本。但是,当我运行时
C:\Users\t3en4>gem install nokogiri --pre
Fetching: nokogiri-1.5.0.beta.4.gem (100%)
ERROR: Error installing nokogiri:
The 'nokogiri' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
我应该怎么办?
最佳答案
您需要DevKit才能正确编译gem。
关于ruby-on-rails - 如何为Windows安装Nokogiri Gem,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6455762/