发表新帖吧 关注:892贴子:4,954
  • 1回复贴,共1

mac在安装redis报错grep: /usr/include/php/main/php.h: No such

只看楼主收藏回复

在安装php拓展redis时报错
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
带着疑问各种搜索
教程一:
> sudo mount -uw /
sudo ln -s "$(xcrun --show-sdk-path)/usr/include" /usr/include export SDKROOT="$(xcrun --show-sdk-path)" echo "export SDKROOT=\"\$(xcrun --show-sdk-path)\"" >> ~/.bash_profile
sudo DevToolsSecurity -enable
没用!!! 当执行sudo mount -uw / 就报错了提示:mount_apfs: volume could not be mounted: Permission denied
mount: / failed with 66
说要关闭SIP 本人按步骤关闭了
sh-3.2# csrutil status
System Integrity Protection status: disabled.
还是挂载不了
教程二
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include /usr/include
root用户执行了报错ln: /usr/include: Read-only file system
再次搜索说要关闭SIP 我是真的xxx!!!!
本人是mac的Big Sur 版本11.2.3
跪求大神解决 已经弄了很久了!拜托~~~


IP属地:广东1楼2021-06-27 15:36回复
    现在解决了吗?我也遇到同样的问题了,我的系统是11.2.2


    IP属地:上海2楼2021-07-09 11:09
    回复