我正在嘗試安裝hpricot
,並且出現以下錯誤。我確實安裝了xcode,但我不確定我還缺少了什麼。安裝hpricot
$ gem install hpricot
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.
/Users/user_name/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for stdio.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我也試過nokogiri。
$ gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/user_name/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for libxml/parser.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
請參閱上面的nokogiri。 – locoboy 2012-07-23 01:44:44
更新了我的回答:) – Sean 2012-07-23 01:51:41
我安裝了nokogiri的東西,但得到相同的答案。 – locoboy 2012-07-23 02:36:19