MacOS10.8.2 Ruby1.9 安装nokogiri报错解决方法

MacOS10.8.2 Ruby1.9.3 安装nokogiri 1.5.6报错

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/*/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
checking for libxml/parser.h... *** extconf.rb failed ***

解决方法

        sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

你可能感兴趣的:(macos)