How to install Nokogiri Ruby gem with mkmf.log saying libiconv not found?

后端 未结 5 1945
[愿得一人]
[愿得一人] 2020-12-25 11:10

I\'m installing the Ruby Nokogiri gem and finding the error below.

How to diagnose this and solve it?

# gem install nokogiri
Building native extensio         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 12:08

    On CentOS here is what I needed to do:

    gem update --system
    yum install libxml2-devel libxslt-devel ruby-devel
    gem install nokogiri -- --use-system-libraries
    

提交回复
热议问题