[英]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.
配置日志
...
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.