在新的Mac Mini上安裝Xcode和pods做葵。
結(jié)果這個(gè)Mac配置不好占哟,慢的離譜,讓人上火。
好不容易Xcode安裝完成了榨乎。
新建項(xiàng)目要用到pods怎燥。
那么又要安裝了。
打開(kāi)終端蜜暑。
先安裝rvm铐姚。
$ rvm install 2.2.2
然后裝的令人上火,大概用了N久N久N久肛捍,我一惱隐绵,被我關(guān)掉了。很尷尬拙毫。
于是再次打開(kāi)重新安裝依许。于是出問(wè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.
然后很尷尬的恬偷,沒(méi)辦法安裝下去了悍手,這時(shí)候看到了這個(gè)
Error running 'requirements_osx_brew_libs_install openssl',
那么就google一下咯。
結(jié)果找到方法了袍患。
在終端上打上這句話
$ sudo chown -R "$USER" "$HOME"
等待執(zhí)行坦康。。诡延。滞欠。。
然后出現(xiàn)了
chown:/User/mac-mini/Library/Caches/Cornerstone/...............
后面太長(zhǎng)了肆良,懶得打了筛璧。之后再重新試一下。
$ rvm requirements
執(zhí)行之后發(fā)現(xiàn)可喜可賀的可以安裝了惹恃。
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.
于是此時(shí)執(zhí)行
$ rvm install 2.2.2
然后就終于可以安裝了夭谤!
之后就可以執(zhí)行
$ sudo gem install cocoapods
安裝pods啦!
非常完美~ : )