Home  >  Article  >  Backend Development  >  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
WBOYOriginal
2016-06-23 13:47:561545browse

在编辑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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn