✅ Suggested fix for Nokogiri build error on Termux (Android) #303
Githu836
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Workaround for Nokogiri install error on Termux (Android)
Nokogiri fails to build native extensions on Termux due to bundled libraries
(libxml2 / libxslt / gumbo) not compiling correctly on Android.
To fix this, run the following commands once:
pkg install libxml2 libxslt
bundle config set build.nokogiri --use-system-libraries
bundle config set force_ruby_platform true
Then repeat the installation (bundle install).
This forces Nokogiri to use Termux system libraries and avoids
building bundled static libraries that cause gumbo.c errors.
Beta Was this translation helpful? Give feedback.
All reactions