Error installing Nokogiri on bundle install but already installed

后端 未结 7 961
忘了有多久
忘了有多久 2020-12-07 17:34

I\'m having issues with bundling my Gemfile. I have Nokogiri installed already yet when I run bundle install it fails to load Nokogiri.

Installing Nok

相关标签:
7条回答
  • 2020-12-07 18:01

    I had the same issues, but I solved it by installing nokogiri this way:

    gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2
    

    ...then all was right with the world. I'll try:

    bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2
    

    ...on my next rails app.

    OS X 10.9.5

    libxml2 2.9.2

    Ruby 2.2.2

    Rails 4.2.1

    Nokogiri 1.6.6.2

    0 讨论(0)
提交回复
热议问题