Skip to content

Unable to install ruby 3.1.x on M1 (Apple Silicon) #1961

Locked Answered by mislav
milosivanovic asked this question in Build failures
Discussion options

You must be logged in to vote

Update: Ruby 3.1.3 is out which includes fixes for macOS Ventura and Xcode 14: https://github.com/rbenv/ruby-build/releases/tag/v20221124

rbenv install 3.1.3

If that fails, you can try the solutions below:


Summarizing the information from different subthreads: if you are affected by build failures on an Apple Silicon machine such as dyld: could not load inserted library or incompatible architecture (have 'arm64', need 'arm64e'), here is what you can try:

  1. Check your Xcode Command Line Tools version: pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version

    If you are on version 14, try downgrading using these instructions: https://bugs.ruby-lang.org/issues/18912

  2. Disable bui…

Replies: 22 comments 34 replies

Comment options

You must be logged in to vote
2 replies
@orbanbalage
Comment options

@orbanbalage

This comment has been hidden.

Comment options

You must be logged in to vote
1 reply
@lion-man44
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RNZ01
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@William-HL1991
Comment options

@sabunt
Comment options

@William-HL1991
Comment options

Comment options

You must be logged in to vote
3 replies
@JorgeGarciaxyz
Comment options

@liamnichols
Comment options

@shepherdjerred
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@liamnichols
Comment options

@JorgeGarciaxyz
Comment options

Comment options

You must be logged in to vote
13 replies
@milosivanovic
Comment options

@mislav
Comment options

@milosivanovic
Comment options

@mislav
Comment options

@milosivanovic
Comment options

Comment options

You must be logged in to vote
7 replies
@rebebop
Comment options

@mislav
Comment options

@hsbt
Comment options

@mislav
Comment options

@eregon
Comment options

Answer selected by mislav
Comment options

You must be logged in to vote
1 reply
@uaru
Comment options

Comment options

You must be logged in to vote
1 reply
@mislav
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #1960 on April 19, 2022 22:08.