今天安裝cocoapods環(huán)境發(fā)現(xiàn)需要更改ruby版本為2.6.0臭增,接著更改ruby版本時報錯Error running '__rvm_make -j4'(please read /Users/...make.log畔况,There has been an error while running make. Halting the installation),或者網(wǎng)上也有__rvm_make -j1的脯倒,試了很多方法包括xcode-select --install,或者rvm get head 等等,都不行除师,后來想了想前兩天ruby切換2.6.5的時候是很順利的地回,但是2.6.0會出現(xiàn)報錯扁远,是不是環(huán)境配置不對俊鱼,所以改了下OpenSSL的版本,然后再切換ruby版本成功了畅买。
主要步驟
1. brew uninstall --ignore-dependencies openssl@3
2. rm -rf /usr/local/etc/openssl@1.1
3. brew reinstall openssl@1.1
4. rvm install 2.6.0