nokogiri gem installation error

后端 未结 17 831
庸人自扰
庸人自扰 2020-11-30 21:04

I know there are a lot of questions about this gem but no answer has worked for me.

When I run in SSH gem install nokogiri I get this error:

<         


        
17条回答
  •  独厮守ぢ
    2020-11-30 21:46

    Finally, the problem was caused by nokogiri itself by shipping it's own libxml2 that's incompatible with some systems.
    So to install nokogiri I had to tell it that it should use the system libraries.

    I installed it manually by:

    gem install nokogiri -v 1.6.2.1 -- --use-system-libraries
    

    And it worked well. Other answers didn't solve it.

提交回复
热议问题