Skip to content

Instantly share code, notes, and snippets.

@firecall
Last active September 20, 2023 04:50
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 firecall/6892cb209ae29e15d904b883060d0f5d to your computer and use it in GitHub Desktop.
Save firecall/6892cb209ae29e15d904b883060d0f5d to your computer and use it in GitHub Desktop.
Install Ruby 3.2.2 with rbenv and jemalloc on ubuntu
sudo apt-get update
sudo apt-get install libjemalloc-dev
RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 3.2.2
# test (look for jemalloc warnings)
MALLOC_CONF=invalid_flag:foo ruby -v
@firecall
Copy link
Author

@firecall
Copy link
Author

ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"

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