Skip to content

Instantly share code, notes, and snippets.

@mupkoo
Last active January 14, 2022 06:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mupkoo/d038a3e578f83897e1b8974a41bb3281 to your computer and use it in GitHub Desktop.
Save mupkoo/d038a3e578f83897e1b8974a41bb3281 to your computer and use it in GitHub Desktop.
M1 Pro problems and how to fix them
# Use the following command to install Ruby 2.6.6
# The other 2.6 version might need this as well
set -gx optflags "-Wno-error=implicit-function-declaration"
set -gx LDFLAGS "-L/opt/homebrew/opt/libffi/lib"
set -gx CPPFLAGS "-I/opt/homebrew/opt/libffi/include"
set -gx PKG_CONFIG_PATH "/opt/homebrew/opt/libffi/lib/pkgconfig"
asdf install ruby 2.6.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment