Nokogiri installation fails -libxml2 is missing

前端 未结 19 2548
情书的邮戳
情书的邮戳 2020-11-27 10:22

I always worked my way around Nokogiri installation issues by following the documentation in the \"Installing Nokogiri\" tutorial.

But this time, even after installi

19条回答
  •  再見小時候
    2020-11-27 10:45

    For OSX users, if you've had success installing Nokogiri before, yet are getting errors installing it on, say, using a new version of Ruby that you've added and that error that includes a message like:

    The compiler failed to generate an executable file. (RuntimeError)
    You have to install development tools first.
    

    This could be indicative of a XCode upgrade having happened via the App Store, either manually or automatically, and you not having opened it since that time.

    If so, you should be able to open XCode, agree to the new license, and then install Nokogiri successfully.

提交回复
热议问题