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

后端 未结 5 1946
[愿得一人]
[愿得一人] 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 11:47

    The 'could not create Makefile' error you're seeing could also be because you haven't agreed to the Xcode license (you have to agree to it after each time you update Xcode). Running sudo xcodebuild -license accept should eliminate this error for you and allow you to then run gem install nokogiri successfully.

提交回复
热议问题