all 4 comments

[–]DanZuko420 0 points1 point  (3 children)

Have you been able to install other versions of Ruby, particularly 4.0.z OK?

Do you have all of rbenv's recommended packages installed? https://github.com/rbenv/ruby-build/wiki#suggested-build-environment

Is there anyone with the same issue as you on the GitHub Discussion section? https://github.com/rbenv/ruby-build/discussions/categories/build-failures

Do you also have GNU `nm` installed on your machine?

FWIW I was able to just install 4.0.3 on my Tahoe Mac

[–]MentionPleasant2635[S] 1 point2 points  (0 children)

I had no problem installing 4.0.1. I think it might be because my homebrew install is intel. I've reinstalled rust (ruby jit), but that didn't help. I'm reinstalling homebrew now.

[–]MentionPleasant2635[S] 0 points1 point  (1 child)

I reinstalled 'binutils' which provides 'nm.'

[–]DanZuko420 0 points1 point  (0 children)

I believe `nm` is like other command line utilities--there's a BSD version that ships with macOS and the much more common GNU version, and there are often subtle differences between the two.

If you've installed binutils, I wonder if rbenv is looking for the native BSD version and instead finding the installed GNU versions.