Can´;t在Mojave中使用rvm安装ruby的新版本

Can´;t在Mojave中使用rvm安装ruby的新版本,ruby,rvm,Ruby,Rvm,我尝试使用RVM安装ruby的新版本, rvm安装2.5.0 但在配置过程中,安装失败 Error running ‘./configure --prefix=/Users/evelinponce/.rvm/rubies/ruby-2.5.0 --with-openssl-dir=/usr/local/opt/openssl/bin/openssl --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/op

我尝试使用RVM安装ruby的新版本,
rvm安装2.5.0
但在配置过程中,安装失败

Error running ‘./configure --prefix=/Users/evelinponce/.rvm/rubies/ruby-2.5.0 --with-openssl-dir=/usr/local/opt/openssl/bin/openssl --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl@1.1 --disable-install-doc --enable-shared’,
please read /Users/evelinponce/.rvm/log/1574200398_ruby-2.5.0/configure.log
There has been an error while running configure. Halting the installation.
配置.log

...
checking whether CFLAGS is valid... yes
checking whether LDFLAGS is valid... no
configure: error: something wrong with LDFLAGS="-L/usr/local/opt/mysql@5.6/lib"

RVM版本:RVM 1.29.9

我记得在过去的几周里,我将mysql从5.6升级到了5.7,所以在bash文件中,我有一些mysql5.6配置阻止了ruby的安装。我只需要从bash概要文件中删除与mysql5.6相关的行

打开bash文件

nano .bash_profile
删除

LDFLAGS=“-L/usr/local/opt”/mysql@5.6/lib“

重新加载bash或打开其他终端

source ~/.bash_profile