-
-
Save frizbee/0a0d55ffe9858741fdecbab5ead9196f to your computer and use it in GitHub Desktop.
Install ruby with rbenv and jemalloc on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install libjemalloc-dev | |
RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 2.7.1 | |
rbenv global 2.7.1 | |
# test (look for jemalloc warnings) | |
MALLOC_CONF=invalid_flag:foo ruby -v | |
# check | |
ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']" | |
#> -lz -lpthread -lrt -lrt -ljemalloc -ldl -lcrypt -lm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment