在新的Mac Mini上安装Xcode和pods。
结果这个Mac配置不好,慢的离谱,让人上火。
好不容易Xcode安装完成了。
新建项目要用到pods。
那么又要安装了。
打开终端。
先安装rvm。
$ rvm install 2.2.2
然后装的令人上火,大概用了N久N久N久,我一恼,被我关掉了。很尴尬。
于是再次打开重新安装。于是出问题了。
Installing required packages: openssl....
Error running 'requirements_osx_brew_libs_install openssl',
showing last 15 lines of /Users/mac-mini/.rvm/log/1471423170/package_install_openssl.log
+ case "$1" in
+ [[ -t 1 ]]
+ return 1
+ printf %b 'There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
+ case "$_system_version" in
+ return 1
Requirements installation failed with status: 1.
然后很尴尬的,没办法安装下去了,这时候看到了这个
Error running 'requirements_osx_brew_libs_install openssl',
那么就google一下咯。
结果找到方法了。
在终端上打上这句话
$ sudo chown -R "$USER" "$HOME"
等待执行。。。。。
然后出现了
chown:/User/mac-mini/Library/Caches/Cornerstone/...............
后面太长了,懒得打了。之后再重新试一下。
$ rvm requirements
执行之后发现可喜可贺的可以安装了。
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
Installing required packages: readline, openssl.....
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
于是此时执行
$ rvm install 2.2.2
然后就终于可以安装了!
之后就可以执行
$ sudo gem install cocoapods
安装pods啦!
非常完美~ : )