Skip to content

Instantly share code, notes, and snippets.

@brain64bit
Last active March 11, 2016 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brain64bit/5b3d3384459cf5f2b708 to your computer and use it in GitHub Desktop.
Save brain64bit/5b3d3384459cf5f2b708 to your computer and use it in GitHub Desktop.
Ruby gems installation problem at Mac OSX Yosemite 10.11

Workaround for gems that cannot be installed easily on macosx yosemite

nokogiri 1.6.6.2

  • make sure nokogiri installed successfully
gem install nokogiri -v '1.6.6.2' -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries
  • add build config for bundle
bundle config build.nokogiri --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries

puma 2.11.1

gem install puma -v '2.11.1' -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment