我尝试使用RVM安装新版本的ruby,
rvm install 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.
configure.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
答案 0 :(得分:0)
我记得最近几周我将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