Closed adelmoradian closed 3 months ago
Hi, do you have binutils
installed from Homebrew, and can you temporarily unlink it?
brew unlink binutils
Hi!
Yes I do have binutils 2.42
already installed with Homebrew however unlinking didn't help.
I tried also just downloading ruby and building it from source however it did not work either... I noticed that this is also happening with other ruby versions now.
I have never seen this reported before, but I would guess that something is broken with the build system on your machine, e.g. that some non-standard tools were installed into PATH, or that some build-related environment variables are mis-configured (see the output of env
). You could also try completely reinstalling Xcode command-line tools. Additionally, if you are a Python developer/data scientist and you have Anaconda suite of tools installed, you can try temporarily uninstalling or unlinking them because that's also known to break Ruby compilation.
I ran into this problem today, and it hadn't been a problem before, where anaconda was overriding my nm
installation and it breaking the build. Uninstalling anaconda solved it.
Basically I just went through the build log, saw which command was failing (nm
) and checked to see which one was being used via which nm
.
Thanks for chiming in, @seabre!
Closing the issue since I don't believe this is a bug with ruby-build nor is it something that our project can solve.
I have issues with building ruby 3.3.4 on my mac.
macOS 14.5 on x86_64 using ruby-build 20240709.1
The output of
rbenv install 3.3.4
ends with: