Skip to content

Instantly share code, notes, and snippets.

@bikerduweb
Last active December 8, 2024 10:17
Show Gist options
  • Select an option

  • Save bikerduweb/bcb0c42efe6fe211b9e7d31ab20af8bb to your computer and use it in GitHub Desktop.

Select an option

Save bikerduweb/bcb0c42efe6fe211b9e7d31ab20af8bb to your computer and use it in GitHub Desktop.
[Ruby compilation] Various help to compile specific ruby things #tips
# Si probleme de librairie zstd
gem install mysql2 -- --with-opt-dir=$(brew --prefix openssl) --with-ldflags=-L/opt/homebrew/opt/zstd/lib
# compile ruby on macbook m1
brew install zlib readline libyaml libffi
export RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib) --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --with-gdbm-dir=$(brew --prefix gdbm)"
export CFLAGS="-Wno-error=implicit-function-declaration"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment