2011-06-23 48 views
6
我有這個問題,引入nokogiri的寶石

如何安裝引入nokogiri寶石適用於Windows

無法打開庫「C:\ Ruby187 \ LIB \紅寶石\寶石\ 1.8 \寶石\引入nokogiri-1.4.6- x86-mingw32 \ ext \ nokogiri \ libxml2.dll':unknown

我讀過,我不得不嘗試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' 

我該怎麼辦?

回答

6

您需要DevKit才能正確編譯gem。

+0

好了,現在我把它。現在我要做什麼? – tiiin4

+0

按照說明正確安裝,然後執行相同的'gem install nokogiri --pre'命令。 – mistagrooves

+2

我收到:libxml2丟失。請訪問http://nokogiri.org/tutorials/installing_nokog iri.html獲取安裝依賴關係的幫助。 – tiiin4

7

哇, 我找到了解決辦法,有一個64位

轉到RubyGems的一個引入nokogiri, 轉到引入nokogiri寶石,並期待在版本列表!

https://rubygems.org/gems/nokogiri

通知x64的mingw32的與x86的版本的mingw32

我花了小時圖了這一點...... enter image description here

+0

我想在最新的nokogiri上,它會通過gem install和bundle install自動解析正確的版本 –

相關問題