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
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.
(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.