当前位置:Gxlcms > PHP教程 > PHP编译时错误解决:Don'tknowhowtodefinestructflockonthissystem,setenable-opcache=no

PHP编译时错误解决:Don'tknowhowtodefinestructflockonthissystem,setenable-opcache=no

时间:2021-07-01 10:21:17 帮助过:58人阅读

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

人气教程排行