美文网首页
Mac 升级到10.11 出现的问题和解决方法

Mac 升级到10.11 出现的问题和解决方法

作者: 木猫尾巴 | 来源:发表于2016-08-21 12:06 被阅读1306次

brew 无法正常工作

需要手动卸载再安装brew

ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"](https://raw.githubusercontent.com/Homebrew/install/master/uninstall)")
/usr/bin/ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install)"](https://raw.githubusercontent.com/Homebrew/install/master/install)")

更多情况请通过这个 http://brew.sh/ 查看对应解决方法

port 无法正常工作

这个是很正常的,会报告错误

Error: Current platform "darwin 15" does not match expected platform "darwin 14"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
    while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

你需要去这里 https://www.macports.org/install.php 重新下载对应系统的macport

建议升级macport后执行这3个命令

# 更新port信息
sudo port -v selfupdate
# 查看可更新的软件信息
sudo port info outdated
# 更新这些软件
sudo port upgrade outdated

brew 运行错误 /usr/local/include is not writable

错误表现

提示/usr/local/include is not writable的错误

Error: /usr/local must be writable!

此问题为权限问题,需要升高权限

给予 /usr/local/用户可用权限

添加用户的可写执行权限

相关文章

网友评论

      本文标题:Mac 升级到10.11 出现的问题和解决方法

      本文链接:https://www.haomeiwen.com/subject/setwsttx.html