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

编译PHP5.6.16时出现了这个错误:

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



解决方法:

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


你可能感兴趣的:(PHP)