Skip to content

Instantly share code, notes, and snippets.

@deanmlittle
Created April 30, 2024 01:52
Show Gist options
  • Save deanmlittle/652f0bf232773dbd5e8b0621ca15a304 to your computer and use it in GitHub Desktop.
Save deanmlittle/652f0bf232773dbd5e8b0621ca15a304 to your computer and use it in GitHub Desktop.
Fix Anchor build on Mac M3

Fix Anchor build on Mac M3

  1. Make sure you have installed XCode from the App store
  2. Select xcode version from appstore: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
  3. Confirm by running xcodebuild -version
  4. Install GCC 12 brew install gcc@12
  5. Create a symlink to your usr/local/include folder to make includes discoverable: sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/* /usr/local/include/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment