If rbenv cannot install a particular version
% rbenv uninstall 2.7.1
BUILD FAILED (macOS 11.2.3 using ruby-build 20200520-14-g1642176)
...
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/XXXX/.rbenv/versions/2.7.1
--with-openssl-dir=/Users/cano/.rbenv/versions/2.7.1/openssl
--enable-shared
--with-readline-dir=/usr/local/opt/readline
CC=clang
LDFLAGS=-L/Users/cano/.rbenv/versions/2.7.1/lib
CPPFLAGS=-I/Users/cano/.rbenv/versions/2.7.1/include
Install with options
% RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib)" rbenv install 2.7.1
If not
% RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl" rbenv install 2.7.1
Read More:
- [Solved] Xcode13.1 Upgrade Error: CocoaPods installed but not working Failed to build gem native extension
- How to Solve ruby rails Install Error [Windows]
- [Solved] utils.c:33:18: fatal error: zlib.h: No such file or directory
- [Solved] Pytorch3d Error: RuntimeError: Not compiled with GPU support.
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- The SDK of Android webrtc compiled with Ninja – C out / release command reported an error, and the Android NDK processing method could not be found
- Gitlab Reconfigure is Stuck ruby_block[wait for redis service socket] action run
- Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found
- Cocoapods Install ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.
- Cordova – CordovaError: Promise rejected with non-error: ‘ios-deploy was not found
- [Solved] Vue3 Error: export ‘createRouter‘ was not found in ‘vue-router‘
- [Webpack Update] vue-loader Error: Compiled with problems : ERRORModule notfound: Error:Can‘ t resolve vue in
- [Solved] MIT cheetah make error: ‘ioctl’ was not declared in this scope
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- JSP error: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- The imported project “c:\Microsoft.Cpp.Default.props” was not found
- The page you are requesting cannot be served because of the extension configuration
- [Solved] Instantiation of ‘sdram_model_plus‘ failed. The design unit was not found.
- [Solved] error: ‘xcb_generic_event_t’ was not declared in this scope