Skip to content

Instantly share code, notes, and snippets.

@sugamasao
Created November 5, 2017 09:57
Show Gist options
  • Save sugamasao/2a815eda038140a64681c2c0adfdf26e to your computer and use it in GitHub Desktop.
Save sugamasao/2a815eda038140a64681c2c0adfdf26e to your computer and use it in GitHub Desktop.
nokogiriをビルドしたい
# brew にあるのとXcodeとどっちをリンクしておくのが良いのだろうか(Xcodeの方がsymlinkなので汎用性ありそう)
% ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
total 0
drwxr-xr-x 5 root wheel 160 11 3 12:39 MacOSX.sdk
lrwxr-xr-x 1 root wheel 10 9 20 22:16 MacOSX10.13.sdk -> MacOSX.sdk
% bundle config build.nokogiri --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libxml2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment