转:https://blog.csdn.net/lishanleilixin/article/details/96137272
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.5.sdk/usr/include /usr/include
解决方案
-
重启 Mac,按 Command + R(Win 键盘:win + R)进入恢复模式
-
打开终端,输入命令:
csrutil disable
-
重启后让机器正常启动,可以在终端查看 rootless 状态:
csrutil status
显示
System Integrity Protection status: disabled.
正常情况下 rootless 已经关闭。
-
要想重新开启 rootless 机制,参考步骤 1,输入命令:
csrutil enable