在Linux中安装Nokogiri错误Mint
问题描述:
我一直在尝试一段时间来安装nokogiri-1.5.0.beta.2,并且我一直在遇到错误。它在其他地方已有记录,但没有任何解决方案可行。在Linux中安装Nokogiri错误Mint
sudo gem install nokogiri -v '1.5.0.beta.2'
它输出
....
make
compiling xml_reader.c
compiling xml_attr.c
compiling xml_entity_reference.c
compiling xml_element_decl.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 make
compiling xml_reader.c
compiling xml_attr.c
compiling xml_entity_reference.c
compiling xml_element_decl.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
它被记录在案here和here,但没有解决方案的工作,任何人有什么建议?我宁愿不只是更新到更新的版本,因为我试图让捆绑安装在别人的工作上运行。
答
没能解决这个问题,但能够通过这两个更新红宝石和/或安装引入nokogiri
gem install nokogiri
较新版本的您使用的是测试版,预计错误,绕过它。 – Reactormonk