rbenv install 2.7.1 install failed - MacOs Big Sur #1860
Replies: 5 comments
-
Same issue here. I have looked at a ton of workarounds but have not had any luck getting to a solution. |
Beta Was this translation helpful? Give feedback.
-
@cgibsonmm I finally managed to fix this by removing all gems running |
Beta Was this translation helpful? Give feedback.
-
No luck with this solution. I am going to look into some of the other issues. |
Beta Was this translation helpful? Give feedback.
-
Hi! I had some issues and I recently got it working last night. I put it in a gist here -- I hope it helps! EDIT: a lot of the stuff outlined in there are things that I see you've already done (reinstalling CommandLineTools), so perhaps my CFLAGS and RUBY_CONFIGURE_OPTS will help |
Beta Was this translation helpful? Give feedback.
-
For me this command worked on macOS 11.6.
|
Beta Was this translation helpful? Give feedback.
-
rbenv install 2.7.1 and RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/local rbenv install 2.7.1
BUILD FAILED (macOS 11.2.1 using ruby-build 20210119)
The Ruby openssl extension was not compiled.
The Ruby zlib extension was not compiled.
/Users/myuser/.rbenv/versions/2.7.1/lib/ruby/2.7.0/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/myuser/.rbenv/versions/2.7.1
--with-openssl-dir=/opt/local
--enable-shared
--with-readline-dir=/usr/local/opt/readline
CC=clang
CFLAGS=-I/usr/local/include/
LDFLAGS=-L/Users/myuser/.rbenv/versions/2.7.1/lib -L/usr/local/opt/openssl/lib
CPPFLAGS=-I/Users/myuser/.rbenv/versions/2.7.1/include -I/usr/local/opt/openssl/include
Beta Was this translation helpful? Give feedback.
All reactions