-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect when --with-jemalloc is specified and install jemalloc #349
Comments
This would be very useful, even more so on newer Homebrew installs which no longer reside in
|
This would be extremely helpful. I almost gave up trying to install ruby 2.7 with jemalloc support before stumbling upon this issue with detailed guide on what needs to be set in the command line to install it properly (thanks @svoop!). |
I recently stumbled over this same issue with Ruby 3.2.0 on Ubuntu 22.04 (jammy) in a docker container. Very similar fix to what @svoop mentioned, just obviously slightly changed for Ubuntu:
If I didn't pass in the both LDFLAGS and CPPFLAGS, enabling jemalloc with the I think this is the best read to highlight what's actually going on: grpc/grpc#25450 (comment) I'm not well-versed in the general chain/Ruby compilation/OS-library-picking workflow, just figured I'd note that it's both still a problem in 3.2.0 and very unintuitive to fix. Is this something ruby-install should fix? Honestly, no idea, but hopefully other lost souls will be able to look at all these links and understand why jemalloc isn't working with the flag. Here's a 'slim' version of my Dockerfile:
|
How would people feel about an explicit ruby-install --enable jemalloc ruby
ruby-install --feature jemalloc ruby Or do people prefer that ruby-install ruby -- --with-jemalloc |
This comment was marked as outdated.
This comment was marked as outdated.
@postmodern I think I disagree with @svoop here, as long as |
I'm also scratching my head even more since all of the Ruby patches and comments seem to indicate this should be fixed in 3.1+.. like I mentioned above, I'm not even sure if this is a Let me know if you need any of my build logs to look at configuration options, linker args, etc @postmodern |
January is Ruby upping month, so I revisit this issue. With some time gone by, I now second @nscott, |
This comment was marked as spam.
This comment was marked as spam.
@monfresh you don't seem to be previously involved in this conversation. Please refrain from using ruby-install issues to advertise Ruby on Mac, as this isn't the appropriate place for advertising. Thanks. |
Sorry about that! It won't happen again. |
I presume this is about compiling jemalloc into Ruby rather than using it at runtime via an LD_PRELOAD flag? If so, I have no opinion on how to tell ruby-install "yes please, I would like jemalloc". But it would be great to have! |
Detect when
--with-jemalloc
is given as an additional configuration option (ex:ruby-install ruby 2.6 -- --with-jemalloc
), and automatically append the appropriate jemalloc package name (based on the$package_manager
) to list of package dependencies.The text was updated successfully, but these errors were encountered: