Created
May 21, 2019 16:13
-
-
Save hopsoft/9e2b89688b56f3b59cb6b9fc8cfdeeb0 to your computer and use it in GitHub Desktop.
Install ruby with rbenv and jemalloc on ubuntu
This file contains 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.6.3 | |
# test (look for jemalloc warnings) | |
MALLOC_CONF=invalid_flag:foo ruby -v |
Worked for me too, thanks a bunch 👍
Note that you may also run ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
to confirm. If you see a flag -ljemalloc
, jemalloc should be working.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, especially the command to test.