Can't install Ruby with jemalloc on macOS Catalina 10.15.1 #1843
Replies: 6 comments 5 replies
-
Hi thank you for reporting! I have no experience with jemalloc, and I haven't seen this error before. For me it works, but my mac is far from a pristine state. Can you double check that jemalloc is linked into your |
Beta Was this translation helpful? Give feedback.
-
Hello, here is the output:
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
Well, I'm stumped. https://github.com/ruby/ruby/blob/v2_6_5/configure.ac#L1123-L1131 Not sure what is different in your environment vs mine. |
Beta Was this translation helpful? Give feedback.
-
@ndbroadbent I occasionally run into this as well and end up having to uninstall homebrew and reinstall from scratch because I haven't figured out any other way to resolve it. Any tips? |
Beta Was this translation helpful? Give feedback.
-
I'm seeing the same/similar behavior on Big Sur (m1) & Catalina (intel). I've tried a bunch of things to resolve this.
Everything looks normal to me, but it won't build with jemalloc on macOS. As far as I can tell, it hasn't for a while (I assumed it was, because it definitely did at one point). I went back and checked some older versions on another machine I had installed. Similar-ish output from my intel as well (latest versions of nearly everything) I feel like this isn't even limited to jemalloc, because I see similar behavior with gmp (I have it, ruby-build can't detect it, but i see linux builds using it) but the cause might be the same. it's like nothing is getting picked up as a configure option using zsh/asdf (not sure if those matter, also tried ruby-build) happy to setup a time to pair/screenshare Update: I followed some of the config docs for readline, with same/similar path settings for jemalloc:
With those changes, Also, I noticed some inconsistencies with the way configure/build flags behave so maybe I'm just doing this wrong now. |
Beta Was this translation helpful? Give feedback.
-
This worked for me (in fish shell): set -gx HOMEBREW_PREFIX "/opt/homebrew";
set -gx CPPFLAGS "$CPPFLAGS -I $HOMEBREW_PREFIX/include"
set -gx LDFLAGS "$LDFLAGS -L $HOMEBREW_PREFIX/lib" |
Beta Was this translation helpful? Give feedback.
-
Hello,
I just set up a new mac, and now
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.5
is failing with this error:I ran
brew install rbenv jemalloc
to install rbenv 1.1.2 and jemalloc 5.2.1.How can I fix this issue? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions