Error in downloading Ruby - any suggestions?


#1

I’m running into a BUILD FAILED (OS X 10.15.2 using ruby-build 20191225). A couple lines down I get:

Last 10 log lines:
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions

Does anyone have any tips? I have fully updated my OS and have re-ran through Web Dev 101 more than once trying to figure out my error.

Much appreciated!


#2

You could try brew install zlib first


#3

Thanks for the reply -

I did brew install zlib, per the web dev 101 TOP page, however I am still getting this error towards the end:

Last 10 log lines:
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:


#4

Can you confirm the output of the following in the terminal

which ruby
echo $PATH

#6

What about cat ~/.zshrc


#7

That gives me:

% cat ~/.zshrc
eval “$(rbenv init -)”


#8

Can you confirm the output of brew install zlib


#9

When I do that, I get this

Warning: zlib 1.2.11 is already installed and up-to-date
To reinstall 1.2.11, run brew reinstall zlib


#10

Thanks for your help - I am just truly confused. I feel like I’ve gone through the steps on Web Dev 101 a dozen times, double checking my errors. Can’t for the life of me figure out how to get the updated ruby install