New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting cannot load such file -- zlib
while installing ruby 2.2.5
#4980
Comments
Hi @aryanagarwal15 and thanks for reporting this issue. Can you, please, fill the other missing info, so we can help you? |
@raelgc I've added my environment info, is anything else needed to be added? |
me too, This problem has bothered me for weeks....... life is so hard 😂 |
I was able to find a solution for this issue. On 17th September 2020 Apple released Command-Line-Tools 12 which breaks rvm installation. To solve this I had to revert to Command-line-Tools 11.5 To check if this is the error with your machine run If the version is 12 then you must downgrade. Process:
Original Comment explaining this: rbenv/ruby-build#1473 (comment) |
yes, it's the XCode issuse |
Description
Getting this error
cannot load such file -- zlib
while running
rvm install 2.2.5 --rubygems 2.7.6
have tried various fixes mentioned in issues which include
rvm reinstall 2.2.5 --with-zlib-dir=$(brew --prefix zlib) --rubygems 2.7.6
&
rvm pkg install zlib
error is coming while
ruby-2.2.5 - #installing rubygems-2.7.6 - please wait
Steps to reproduce
run
rvm install 2.2.5 --rubygems 2.7.6
Expected behavior
install ruby 2.2.5
Actual behavior
install
install
Debug mode:
install
install
Environment info
`ruby-2.7.0:
system:
uname: "Darwin Aryans-MacBook-Pro.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64"
name: "OSX"
version: "10.15"
architecture: "x86_64"
bash: "/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)"
zsh: "/bin/zsh => zsh 5.7.1 (x86_64-apple-darwin19.0)"
remote_path: "osx/10.15/x86_64"
xcode: "12.0"
rvm:
version: "1.29.10 (latest)"
updated: "2 hours 20 minutes 42 seconds ago"
path: "/Users/aryan/.rvm"
autolibs: "[enable] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."
ruby:
interpreter: "ruby"
version: "2.7.0p0"
date: "2019-12-25"
platform: "x86_64-darwin19"
patchlevel: "2019-12-25 revision 647ee6f091"
full_version: "ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]"
homes:
gem: "/Users/aryan/.rvm/gems/ruby-2.7.0"
ruby: "/Users/aryan/.rvm/rubies/ruby-2.7.0"
binaries:
ruby: "/Users/aryan/.rvm/rubies/ruby-2.7.0/bin/ruby"
irb: "/Users/aryan/.rvm/rubies/ruby-2.7.0/bin/irb"
gem: "/Users/aryan/.rvm/rubies/ruby-2.7.0/bin/gem"
rake: "/Users/aryan/.rvm/rubies/ruby-2.7.0/bin/rake"
environment:
PATH: "/Users/aryan/.rvm/gems/ruby-2.7.0/bin:/Users/aryan/.rvm/gems/ruby-2.7.0@global/bin:/Users/aryan/.rvm/rubies/ruby-2.7.0/bin:/usr/local/opt/openssl@1.1/bin:/Users/aryan/.pyenv/shims:/Users/aryan/.pyenv/bin:/usr/local/opt/mysql@5.6/bin:/Users/aryan/.gem/ruby/2.7.0/bin:/Users/aryan/.nvm/versions/node/v14.7.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/opt/nginx/sbin/:/Users/aryan/.rvm/bin"
GEM_HOME: "/Users/aryan/.rvm/gems/ruby-2.7.0"
GEM_PATH: "/Users/aryan/.rvm/gems/ruby-2.7.0:/Users/aryan/.rvm/gems/ruby-2.7.0@global"
MY_RUBY_HOME: "/Users/aryan/.rvm/rubies/ruby-2.7.0"
IRBRC: "/Users/aryan/.rvm/rubies/ruby-2.7.0/.irbrc"
RUBYOPT: ""
gemset: ""`
The text was updated successfully, but these errors were encountered: