今天晚上學(xué)習(xí)的時(shí)候,突然需要用到cocoapods。突然發(fā)現(xiàn)電腦的rubygem 版本太低。 于是打算更新一下。
在執(zhí)行:gem update --system 命令的時(shí)候出現(xiàn)了這個(gè)錯(cuò)誤。

圖1
于是乎:
sh-3.2# openssl version
OpenSSL 0.9.8zh 14 Jan 2016
心想應(yīng)是openssl版本太舊了.
brew install openssl
準(zhǔn)備打算用brew 更新下openssl 庫(kù)的時(shí)候,突然出現(xiàn)了下面的錯(cuò)誤。
Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.
解決方案:
在用戶終端的用戶模式下輸入: sudo chown -R [用戶名] /usr/local 解決。