search

Home  >  Q&A  >  body text

macos - After upgrading mac os to 10.12.5, there is no permission to compile PHP extension?

After upgrading mac os to 10.12.5, I don’t have permission to compile PHP extensions?
Error reporting in the last step

sudo make install
Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20131226/
cp: /usr/lib/php/extensions/no-debug-non-zts-20131226/#INST@79807#: Operation not permitted
make: *** [install-modules] Error 1

出现了没权限,我打算将/usr/lib/php/extensions/权限修改为777,
但是

sudo chmod -R 777 extensions/
Password:
chmod: Unable to change file mode on extensions/: Operation not permitted

已经是root身份操作,有没有遇到的??
滿天的星座滿天的星座2796 days ago778

reply all(1)I'll reply

  • 阿神

    阿神2017-05-31 10:35:21

    It may be that the file has been made unmodifiable by chattr. Use the lsattr command to check.

    reply
    0
  • Cancelreply