无法在 Mojave 中使用 rvm 安装 ruby 的新版本
Can´t install a new version of ruby using rvm in Mojave
我尝试使用 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
我记得在过去几周我将 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
我尝试使用 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
我记得在过去几周我将 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