Skip to content

Instantly share code, notes, and snippets.

@BrianSigafoos
Last active January 4, 2022 20:36
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 BrianSigafoos/84bbce66fd363264dead5f22fccec51d to your computer and use it in GitHub Desktop.
Save BrianSigafoos/84bbce66fd363264dead5f22fccec51d to your computer and use it in GitHub Desktop.
Apple Mac M1 development tips and hacks

Development

Open terminal as X86, then run webpack:

arch -x86_64 zsh
yarn install && yarn webpack

Setup

If you need to install software like Node JS 12, do this:

  1. First install Rosetta: softwareupdate --install-rosetta
  2. Open a terminal as x86 arch via this command: arch -x86_64 zsh
  3. Then install and run any software that needs to be run on x86
    1. nvm install v12.22.8 --shared-zlib
  4. If in doubt, type in arch to see i386 vs arm64 and try to install something and reinstall it with x86
    1. Ex: brew uninstall chromium (ARM64) brew install chromium (x86_64)

Troubleshooting

  • Redis error: “MISCONF Redis is configured to save RDB snapshots”
    • brew services restart redis
  • maxmind_geoip2 gem error
    • brew install libmaxminddb (arm64)
    • gem install maxmind_geoip2 -v '0.0.8' -- --with-opt-include=/opt/homebrew/include --with-opt-lib=/opt/homebrew/lib

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment