Skip to content

Instantly share code, notes, and snippets.

@abuxton
Created January 29, 2020 11:35
Show Gist options
  • Save abuxton/f393aac91ff54d3b354ce23a7769a939 to your computer and use it in GitHub Desktop.
Save abuxton/f393aac91ff54d3b354ce23a7769a939 to your computer and use it in GitHub Desktop.
nokogiri install help as i never remeber
https://nokogiri.org/tutorials/installing_nokogiri.html#macos
gem update --system
xcode-select --install
brew install libxml2
```sh
brew install libxml2
# If installing directly
gem install nokogiri -- --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
# If using Bundle
bundle config build.nokogiri --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
bundle install
```
https://nokogiri.org/tutorials/installing_nokogiri.html#install_with_system_libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment