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

编辑 /etc/ld.so.conf 加入

/usr/local/lib

再执行

ldconfig