For reference only:
- rtx-cli
- Ruby 3.2.0
- Most dependencies installed via Homebrew
- macOS 14.2.1
- M3 Max chip
My complete error is:
WARNING: Nokogiri was built against libxml version 2.9.13, but has dynamically loaded 2.12.5
gem install nokogiri -v 1.16.2 --platform=ruby -- --use-system-libraries
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- Deleting every
nokogiri
folder under~/.local/share/rtx/installs/ruby
4.gem install nokogiri
bundle pristine nokogiri
gem pristine nokogiri
gem uninstall nokogiri -aIx && NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install
gem uninstall nokogiri -aIx &&
bundle config build.nokogiri "--use-system-libraries" && bundle install`gem update --system && gem pristine nokogiri
gem uninstall nokogiri -aIx && gem install nokogiri -- --with-xml2-include=/usr/include/libxml2/libxml --with-xml2-lib=/usr/lib64/ --with-xslt-include=/usr/include/libxslt --with-xslt-lib=/usr/lib64/
gem uninstall nokogiri -aIx && bundle config build.nokogiri "--with-xml2-include=/usr/include/libxml2/libxml --with-xml2-lib=/usr/lib64/ --with-xslt-include=/usr/include/libxslt --with-xslt-lib=/usr/lib64/" && bundle install
I think this probably worked because I have brew install libxml2 libxslt
. I'm also not sure why this worked, because the paths that are passed as arguments above don't seem to be actual paths on my file system?
bundle config set force_ruby_platform true