macos - After upgrading mac os to 10.12.5, there is no permission to compile PHP extension?
滿天的星座
滿天的星座 2017-05-31 10:33:21
0
1
725

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身份操作,有没有遇到的??
滿天的星座
滿天的星座

reply all(1)
阿神

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!