Installing nokogiri Mac OS X 10.8.2 XCode installed

前端 未结 3 1583
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 10:22

Trying to install nokogiri on Mountain Lion. I was using ruby 1.8.7 but just upgraded to 1.9.3 but it stopped the bundle install from working.

Incidentally, I could get

3条回答
  •  无人共我
    2021-02-04 10:38

    Try these. I faced the same issue and it worked for me. First install libxml2 and then run bundler again.

     brew install libxml2
     brew link libxml2
    

    Source: http://decielo.com/articles/11/rails-3-on-lion-hey-ho-lets-go

    Update:

    I am hoping that you have homebrew installed. If you don't have homebrew then I will suggest you to install homebrew and then install libxml2 and then bundler. Don't use mac ports in case you don't have homebrew.

    Update:

    It's not an issue of command line tools. It's failing at libxml. Try to read the error and you will see

        checking for libxml/parser.h... *** extconf.rb failed ***
    

    And that's the issue

提交回复
热议问题