[英]How to install Nokogiri Gem for Windows
我對nokogiri的寶石有這個問題:
無法打開庫'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'
我該怎么辦?
哇,我找到了解決方案,有64位的nokogiri
轉到rubygems,轉到nokogiri gem,看看版本列表!
https://rubygems.org/gems/nokogiri
注意x64-mingw32和x86-mingw32版本
花了我幾個小時來搞清楚這一點......
您需要DevKit才能正確編譯gem。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.