gem install nokogiri -v '1.6.8.1' fails

前端 未结 4 798
轮回少年
轮回少年 2021-02-02 11:34

Building a new Rails app and getting a problem with nokogiri. Said to try gem install nokogiri -v \'1.6.8.1\' which fails with output below. I tried deleting Gemfil

4条回答
  •  走了就别回头了
    2021-02-02 12:03

    I tried @the_basterd's recommendation. That didn't work, but the reference was good—thank you the_basterd. What worked from that reference was:

    brew install libxml2

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

    Reference: https://github.com/sparklemotion/nokogiri/issues/1483

    Later postings at that ref said that what I posted above "is strongly recommended against by the Nokogiri."

    brew unlink xz; bundle install; brew link xz is preferred.

提交回复
热议问题