簡體   English   中英

無法在Redhat Linux上安裝依賴項的Nokogiri

[英]Unable to install Nokogiri with dependencies on Redhat Linux

我正在使用Ruby 1.9.3,因此必須使用舊版本的Nokogiri。 我需要安裝Nokogiri v1.5.10。

最初,我收到一個錯誤,指出缺少libxml2。 安裝libxml2后,出現以下錯誤:

ERROR:  Error installing nokogiri-1.5.10.gem:
        ERROR: Failed to build gem native extension.

        /opt/ruby-1.9.3/bin/ruby extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
-----
libxslt is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

我需要手動安裝每個依賴項嗎?

如果是這樣,我如何確定要使用哪個版本?

注意 :服務器無法訪問Internet。 因此,我必須scp rpm或tar文件進行安裝。

不幸的是,您將需要使用該版本的Nokogiri手動安裝每個依賴項,因為我不相信它們會在1.6.0.rc1版本中打包依賴項。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM