nokogiri - ERROR: Failed to build gem native extension

前端 未结 8 1336
既然无缘
既然无缘 2020-12-11 15:59

I updated to the developer release of Lion and noticed I couldn\'t start rails apps anymore. Whenever I try to sudo bundle install, I get the following error:

8条回答
  •  悲&欢浪女
    2020-12-11 16:33

    It says: "can't find header files for ruby". In other words, you're missing the ruby headers in order to compile libxml/nokogiri as a ruby extension.

    Consider installing ruby 1.9 (or 1.8) using macports or rvm. I'm not 100% on the second, but the first will automatically make the relevant headers available.

提交回复
热议问题