OS X El Capitan 作为最新苹果最新推出的OS X,让你能以更简单、更智能的方式,在 Mac 上处理日常事务。例如,借助 Split View 同时在多个 apps 中进行操作等。最近更新的时候遇到了一些坑,简单列举一下。
OS X El Capitan官方介绍地址:https://www.apple.com/cn/osx/whats-new/
由于El Capitan有6G多,比较大再加上服务器不稳定,所以下载起来比较麻烦,很容易因为网络问题下载失败。
在执行brew或者git相关的命令时,出现如下报错:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
问题原因以及具体的说明在homebrew的github以及有说明。具体内容可点击查看:https://github.com/Homebrew/homebrew/issues/23500。再次直接附上解决方案:
直接输入命令:
sudo chown -R $(whoami):admin /usr/local
sudo chown -R $(whoami):admin /Library/Ruby/Gems/2.0.0 && gem install jekyll
这个问题没有仔细研究,不知道是因为换了路径(可能性太小了)。还是没有内置。反正手头有1.7,就直接更新了。这里的处理方法很简单,安装jdk即可。由于墙的原因,jdk下载速度奇慢,用代理也还是太慢,这里就共享一下自己的下载包,现在非官方版闹的大家人心惶惶,就顺手附上官方包的md5查询地址吧。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有