Error installing nokogiri: Failed to build gem native extension & libiconv is missing (OSX)

前端 未结 15 1421
无人共我
无人共我 2020-12-07 18:25

I try to clone this repo and run bundle install. The bundle process failed and throw this error:

    ...
    Installing nokogiri 1.6.2.1 with na         


        
15条回答
  •  独厮守ぢ
    2020-12-07 19:08

    If you're using bundle:

    brew install libxml2
    
    # If using Bundle
    bundle config build.nokogiri --use-system-libraries \
      --with-xml2-include=$(brew --prefix libxml2)/include/libxml2
    bundle install
    

    from http://www.nokogiri.org/tutorials/installing_nokogiri.html

提交回复
热议问题