Skip to content

Instantly share code, notes, and snippets.

@gtallen1187
Created May 26, 2019 01:00
Show Gist options
  • Save gtallen1187/aba303f4952d1f5015db703326fa2ee8 to your computer and use it in GitHub Desktop.
Save gtallen1187/aba303f4952d1f5015db703326fa2ee8 to your computer and use it in GitHub Desktop.
Run this mac script to ensure that you can install gems with C extensions properly

Final Steps

Mojave changed the location of header files necessary for compiling C extensions. You might need to run the following command to install pg, nokogiri, or other gems that require C extensions:

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment