Skip to content

Failed to install ruby 3.1.0 on M1 #1933

Answered by ihomway
ihomway asked this question in Build failures
Discussion options

You must be logged in to vote

I have solved this issue by export capstone library (I'm using Fish shell).

$ set -gx LDFLAGS "-L/opt/homebrew/opt/capstone/lib"
$ set -gx CPPFLAGS "-I/opt/homebrew/opt/capstone/include"
$ rbenv install 3.1.0

Downloading openssl-1.1.1l.tar.gz...
-> https://www.openssl.org/source/openssl-1.1.1l.tar.gz
Installing openssl-1.1.1l...
Installed openssl-1.1.1l to /Users/puer/.rbenv/versions/3.1.0

Downloading ruby-3.1.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.0.tar.gz
Installing ruby-3.1.0...
ruby-build: using readline from homebrew
Installed ruby-3.1.0 to /Users/puer/.rbenv/versions/3.1.0

But I don't if this is the best solution.

Replies: 5 comments 3 replies

Comment options

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

Answer selected by ihomway
Comment options

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

@jez
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #1932 on February 08, 2022 06:47.