2
我想在Ubuntu 12.10上安裝foodcritic gem。它可以成功安裝在Ubuntu 12.04中。我已經安裝了要求:的libxslt-dev的,的libxml2-dev的,ruby1.9.3和使包。但是,當我現在嘗試安裝Nokogiri(v.1.5.0。)Gem在Ubuntu 12.10
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?
很好,謝謝。我下載了gem(http://rubygems.org/gems/foodcritic),更改了元數據(nokogiri〜> 1.5.4)的需求,並根據http://stackoverflow.com/questions/2386996/how-to-install -a - 下載 - 紅寶石寶石文件 –