I am trying to install foodcritic gem on Ubuntu 12.10. It could be successfully installed in Ubuntu 12.04. I have installed the requirements: libxslt-dev, libxml2-dev, ruby1.9.3 and make packages. But when now I try
sudo gem install foodcritic
I get the following error:
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 is a requirement for foodcritic and it is it's instllation that fails. How can I install foodcritic?