我正在尝试安装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