Skip to content

Commit 4bf6f66

Browse files
committed
doc: clarify how to avoid installing a native gem
[skip ci]
1 parent 31ea008 commit 4bf6f66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ If you're on a platform that supports a native gem but you want to avoid using i
107107

108108
- If you're not using Bundler, then run `gem install sqlite3 --platform=ruby`
109109
- If you are using Bundler
110-
- version 2.1 or later, then you'll need to run `bundle config set force_ruby_platform true`,
110+
- version 2.3.18 or later, you can specify [`gem "sqlite3", force_ruby_platform: true`](https://bundler.io/v2.3/man/gemfile.5.html#FORCE_RUBY_PLATFORM)
111+
- version 2.1 or later, then you'll need to run `bundle config set force_ruby_platform true`
111112
- version 2.0 or earlier, then you'll need to run `bundle config force_ruby_platform true`
112113

113114

@@ -143,6 +144,7 @@ If you would prefer to build the sqlite3-ruby gem against your system libsqlite3
143144

144145
PLEASE NOTE:
145146

147+
- you must avoid installing a precompiled native gem (see [previous section](#avoiding-the-precompiled-native-gem))
146148
- only versions of libsqlite3 `>= 3.5.0` are supported,
147149
- and some library features may depend on how your libsqlite3 was compiled.
148150

0 commit comments

Comments
 (0)