sparklemotion / nokogiri.org

Documentation site for Nokogiri (a ruby library)
https://nokogiri.org/
MIT License
45 stars 24 forks source link

Add how to apply "force_ruby_platform" only to nokogiri #52

Closed nanashisan774s closed 2 years ago

nanashisan774s commented 2 years ago

(Sorry, it's an automatic translation.)

How can I avoid using a precompiled native gem? It would have been nice if the above page had shown how to set "force_ruby_platform" only for nokogiri when using bundler.

version 2.1 or later, then you'll need to run bundle config set force_ruby_platform true, I don't want to set the above method just to avoid nokogiri errors, as it will affect other gems as well.

I wrote the following in my gemfile instead gem "nokogiri", force_ruby_platform: true

bundler document Pull request for the relevant functionality

I wanted to apply force_ruby_platform only to nokogiri because I could not use native precompiled gems due to a glibc version problem in my environment.

flavorjones commented 2 years ago

@nanashisan774s Would you be willing to contribute a pull request updating the documentation?

flavorjones commented 2 years ago

https://nokogiri.org/tutorials/installing_nokogiri.html#how-can-i-avoid-using-a-precompiled-native-gem