Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/54.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 使用“时安装Nokogiri时出错”;“捆绑安装”;_Ruby On Rails_Ruby_Rubygems_Nokogiri - Fatal编程技术网

Ruby on rails 使用“时安装Nokogiri时出错”;“捆绑安装”;

Ruby on rails 使用“时安装Nokogiri时出错”;“捆绑安装”;,ruby-on-rails,ruby,rubygems,nokogiri,Ruby On Rails,Ruby,Rubygems,Nokogiri,当我运行bundle install时,它会停止: Installing nokogiri (1.4.3.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 我尝试使用“”手动安装它,但结果确实对我有利 我需要改变什么吗 /usr/bin/ruby1.9.1 extconf.rb' extconf.rb:10: Use

当我运行
bundle install
时,它会停止:

Installing nokogiri (1.4.3.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.  
我尝试使用“”手动安装它,但结果确实对我有利

我需要改变什么吗

/usr/bin/ruby1.9.1 extconf.rb'   
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 xmlParseDoc() in -lxml2... yes  
checking for xsltParseStylesheetDoc() in -lxslt... yes  
checking for exsltFuncRegister() in -lexslt... 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 xml_dtd.c  
compiling xml_entity_reference.c  
compiling xml_sax_parser_context.c  
compiling xml_attribute_decl.c  
compiling xml_schema.c  
compiling xml_processing_instruction.c  
compiling xml_cdata.c  
compiling xml_xpath_context.c  
xml_xpath_context.c: In function ‘xpath_generic_exception_handler’:  
xml_xpath_context.c:154: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  

Gem files will remain installed in /home/virinchy/.bundler/tmp/10048/gems/nokogiri-  1.4.3.1 for inspection.  
Results logged to /home/virinchy/.bundler/tmp/10048/gems/nokogiri- 1.4.3.1/ext/nokogiri/gem_make.out
An error occured while installing nokogiri (1.4.3.1), and Bundler cannot continue.  
Make sure that `gem install nokogiri -v '1.4.3.1'` succeeds before bundling.'  

首先,Nokogiri 1.4.3.1已经快三岁了。你应该升级


第二,有关Debian如何强化gcc编译器的详细信息,请参见。您需要使用debian的旧版本或Nokogiri的新版本。

首先,Nokogiri 1.4.3.1已经快三年了。你应该升级


第二,有关Debian如何强化gcc编译器的详细信息,请参见。您需要使用debian的旧版本或Nokogiri的新版本。

可能的副本也不是偶然的副本。。。你不修改原来的问题有什么原因吗?嗯,但他们都没有答案。可能的重复也不是偶然的重复。。。你不修改原来的问题有什么原因吗?嗯,但他们都没有答案。