Ruby 当我尝试运行bundler时,出现错误:

Ruby 当我尝试运行bundler时,出现错误:,ruby,nokogiri,Ruby,Nokogiri,Gem文件仍将安装在/var/lib/gems/1.9.1/gems/nokogiri-1.5.2中以供检查。 结果记录到/var/lib/gems/1.9.1/gems/nokogiri-1.5.2/ext/nokogiri/gem_make.out 安装nokogiri 1.5.2时出错,捆绑程序无法继续。 在绑定之前,请确保gem安装nokogiri-v“1.5.2”成功。您使用的是哪种操作系统?如果在mac上,请确保您有用于xcode的命令行工具,或者使用“xcode select-in

Gem文件仍将安装在/var/lib/gems/1.9.1/gems/nokogiri-1.5.2中以供检查。 结果记录到/var/lib/gems/1.9.1/gems/nokogiri-1.5.2/ext/nokogiri/gem_make.out

安装nokogiri 1.5.2时出错,捆绑程序无法继续。
在绑定之前,请确保gem安装nokogiri-v“1.5.2”成功。

您使用的是哪种操作系统?如果在mac上,请确保您有用于xcode的命令行工具,或者使用“xcode select-install”安装它们。Debian风格的发行版1.5.2中可能存在重复的缺陷。请尝试1.5.4或更高版本。
bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Using rake (0.9.2.2) 
Using RedCloth (4.2.9) 
Using i18n (0.6.0) 
Using multi_json (1.3.6) 
Using activesupport (3.2.6) 
Using builder (3.0.0) 
Using activemodel (3.2.6) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.1.3) 
Using actionpack (3.2.6) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.4.4) 
Using actionmailer (3.2.6) 
Using arel (3.0.2) 
Using tzinfo (0.3.33) 
Using activerecord (3.2.6) 
Using activeresource (3.2.6) 
Using bundler (1.1.4) 
Installing nokogiri (1.5.2) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9.1 extconf.rb --use-system-libraries
extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes 
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile

make
compiling html_sax_push_parser.c
compiling xslt_stylesheet.c
compiling html_document.c
compiling xml_xpath_context.c
xml_xpath_context.c: In function ‘xpath_generic_exception_handler’:
xml_xpath_context.c:189:3: error: format not a string literal and no format arguments [-Werror=format-security]
cc1: some warnings being treated as errors
make: *** [xml_xpath_context.o] Error 1