![]() If you're here, it should be because you're on an older version, or you're on an unsupported platform.īefore you begin, make sure you have the full compiler toolchain for compiling Ruby C Extensions. If you're not using Bundler, then run gem install nokogiri -platform=ruby.Īgain, we recommend that you upgrade to v1.11 or later and use a native gem whenever possible.Else with Bundler ![]() Else with Bundler >= 2.1, then run bundle config set force_ruby_platform true,.With Bundler >= 2.3.18, then update your Gemfile with gem "nokogiri", force_ruby_platform: true. ![]() If you're on a platform that supports a native gem but you want to avoid using it in your project, do one of the following: We expect it will be a much better experience for you and allow us to focus our efforts on improving functionality rather than diagnosing installation issues. The Nokogiri maintainers strongly urge you to use a native gem if at all possible. If you have other reasons for not wanting to use a precompiled native gem, let us know! (See Getting Help.) How can I avoid using a precompiled native gem? ¶ If you're on Termux, you will need to install from the ruby platform gem (see for background). What can we do to increase that trust? (I can imagine providing a chain of custody including public build logs with cryptographic hashes of artifacts, but I'd like to hear from real users.)Īnybody on a linux system with an unsupported version of glibc (see Supported Platforms) will need to install from the ruby platform gem. I can imagine some folks might have trust issues if this is you, please let us know in a comment at RFC: Increase the level of trust in released gem files Why would I not want to use a native gem? ¶ This installation should only take a few seconds, and your output should look something like:īundle install # resolve dependencies for platform-specific gems If you're on a supported platform, either gem install or bundle install should install a native gem without any additional action on your part. To determine whether your system supports one of these gems, look at the output of bundle platform or ruby -e 'puts Gem::_s'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |