Closed tnir closed 3 years ago
:wave: Thank you for opening this issue and asking this question.
It looks like you don't have a compiler toolchain installed. The version of Nokogiri you're successfully installing is a precompiled version which doesn't require a C compiler toolchain; if we try that again with --platform=ruby
you'll see a similar error; or alternatively if you try to install a gem with even a simple C extension, you'll see similar errors (e.g, gem install bcrypt
).
If you take a look at this section in the Nokogiri installation doc you'll see how to set up your compiler toolchain for Alpine. TL;DR, apk add build-base
.
Hope this helps!
Oh, and one more note: we're in the process of merging Nokogumbo into Nokogiri, at which point we'll be able to provide precompiled gems for Nokogumbo functionality as well. Stay tuned by following https://github.com/sparklemotion/nokogiri/issues/2204 !
Thanks!
Installing nokogumbo 2.0.5 to pristine Alpine Linux fails.
On Debian
On Alpine
Note
nokogiri can be installed even on Alpine Linux as follows: