首頁  >  文章  >  後端開發  >  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:561544瀏覽

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