Error while installing Nokogiri (1.6.7) on El Capitan

前端 未结 8 1879
执笔经年
执笔经年 2020-12-07 16:59

One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails.

➜  my-project git:(master) bundle inst         


        
8条回答
  •  一整个雨季
    2020-12-07 17:17

    I you're using homebrew to maintain libraries like libml on your mac, the following command on your mac might help:

    
    gem install nokogiri -v '1.6.8' -- --use-system-libraries --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2  --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib/
    

    just ensure that the path for libxml is same as mine unless brew changes with the next version. You can check this by running the below command:

    
    brew info libxml2
    

提交回复
热议问题