转关于 Nokogiri 的安装依赖 libxml2安装问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了转关于 Nokogiri 的安装依赖 libxml2安装问题相关的知识,希望对你有一定的参考价值。
来源:https://ruby-china.org/topics/30243
在自己的os x系统上一直运行正常,包括正常使用nokogiri这个gem,今天
在本地建立新项目,bundle install 报nokogiri安装异常。
单独gem install nokogiri,报下面的错误:
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /Users/jayzen/.rvm/gems/ruby-2.3.0/gems/nokogiri-1.6.8/ext/nokogiri
/Users/jayzen/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160610-32051-16q0bpc.rb extconf.rb
Using pkg-config version 1.1.7
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
checking for iconv using --with-opt-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.4.
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem