首页 >后端开发 >php教程 >PHP编译时错误解决:Don't know how to define struct flock on this system, set enable-opcache=no

PHP编译时错误解决:Don't know how to define struct flock on this system, set enable-opcache=no

WBOY
WBOY原创
2016-06-23 13:47:561583浏览

在编辑PHP5.6.1时出现了这个错误:

Don't know how to define struct flock on this system, set --enable-opcache=no


解决方法是:

sudo ln -s /usr/local/mysql/lib/libmysqlclient.so /usr/lib/
sudo ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn