zhangsandeMacBook-Pro:usr zhangsan$ sudo chmod 777 ./lib
chmod: Unable to change file mode on ./lib: Operation not permitted
怪我咯2017-04-17 14:43:05
OSX has a kernel protection that needs to be turned off in recovery mode. You can find out more about it on Quora. When I compiled PHP and installed it, I did not have enough permissions, that is, I could not change system-level files. After turning it off, it was fixed. This situation does not exist below 10.10
ringa_lee2017-04-17 14:43:05
The correct answer is that even if you give sudo permissions at the system level, it won't work