我试图在Ubuntu 12.10安装foodcritic宝石。 它可以成功地安装在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宝石是foodcritic的要求,这是它的instllation失败。 如何安装foodcritic?