From a16325e96a69b6aa3d1df46cf0c754d3ef451359 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 26 Oct 2021 16:03:59 -0400 Subject: [PATCH] update note from #39 h/t to @airblade, thank you! --- docs/tutorials/installing_nokogiri.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/installing_nokogiri.md b/docs/tutorials/installing_nokogiri.md index 676ab666..2aa1d8fa 100644 --- a/docs/tutorials/installing_nokogiri.md +++ b/docs/tutorials/installing_nokogiri.md @@ -39,7 +39,14 @@ Successfully installed nokogiri-1.11.0-x86_64-linux 1 gem installed ``` -If you're using Bundler v2.2+, check your lockfile knows about your platform(s): see `man bundle-lock` for details. +If you're using Bundler v2.2+, check that your lockfile knows about your platform(s). For example, if you develop on macOS and deploy to Linux you will need to run these commands in your development environment: + +``` sh +bundle lock --add-platform x86_64-linux +bundle install # resolve dependencies for platform-specific gems +``` + +See `man bundle-lock` for details. ### Why would I not want to use a native gem?