環(huán)境?
? ? mac版本10.12.6 Sierra
????原本想升級cocoapods卫玖,但是發(fā)現(xiàn)需要先升級gem,升級gem后假瞬,發(fā)現(xiàn)總是出現(xiàn)如下問題:????
YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0).
ERROR:? SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR:? You must add /O=Digital Signature Trust Co./CN=DST Root CA X3 to your local trusted store
????查了一下原因說是需要升級ruby.
升級ruby網(wǎng)上資源很多迂尝,參考鏈接如下:RVM 實用指南 · Ruby China
? ? 過程中又遇到如下問題:
? ??Error running 'requirements_osx_brew_libs_install libtool coreutils libyaml readline libksba openssl@1.1',
please read /Users/qixin/.rvm/log/1520495237_ruby-2.4.0/package_install_libtool_coreutils_libyaml_readline_libksba_openssl@1.1.log
Requirements installation failed with status: 1.
? ? stack overflow 中找到的大概解決方法鏈接:ruby - Error running 'requirements_osx_brew_libs_install...' on Mac 10.7 - Stack Overflow
????重要步驟在于雹舀,在終端執(zhí)行如下命令:$?brew install sqlite
????然后遇到提示:
????Xcode alone is not sufficient on Sierra.
Install the Command Line Tools:
? xcode-select --install
此時,按提示在終端執(zhí)行虚吟,$xcode-select --install签财, 即可,
安裝完成后邦鲫,執(zhí)行神汹,?brew install sqlite,然后成功后滔以,便可執(zhí)行?rvm install 2.4.0 --disable-binary 安裝新的ruby 了氓拼。