nokogiri - ERROR: Failed to build gem native extension

前端 未结 8 1316
既然无缘
既然无缘 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

    I found this worked via https://github.com/sparklemotion/nokogiri/issues/1166#issuecomment-56545974.

    $ brew install libxml2
    $ gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/
    

    Here's a more detailed approach if even this doesn't work. http://www.bullrico.com/2012/07/12/installing-nokogiri-after-updating-homebrew

提交回复
热议问题