1.修改libtool
修改libtool
sudo mv /opt/local/bin/libtool libtool_.bak
env CFLAGS='-g -O2' RUBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline`" CC=/usr/bin/gcc ruby-install ruby 2.7.1
2.openssl错误
make[1]: *** [apps/openssl] Error 1
export CFLAGS='-g -O2'
export RUBY_CONFIGURE_OPTS="--with-readline-dir=
export CC=/usr/bin/gcc
rbenv install 2.7.1