我正在尝试在 Ubuntu 12.10 上安装 foodcritic gem。它可以在 Ubuntu 12.04 中成功安装。我已经安装了要求:libxslt-dev,libxml2-dev,ruby1.9.3和制作包。但是当我现在尝试
sudo gem install foodcritic
我收到以下错误:
compiling xml_xpath_context.c
xml_xpath_context.c: In function ‘xpath_generic_exception_handler’:
xml_xpath_context.c:184: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 /usr/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out
Nokogiri-1.5.0 gem 是 foodcritic 的要求,它的安装失败了。如何安装 foodcritic?