报错:

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

虽然提示了 关闭这个选项,但要搞清楚这个能不能关闭。

查看--enble-opchahe的作用

[root@lnmp php-5.6.10]# ./configure --help|grep opcache
  --enable-opcache        Enable Zend OPcache support

可知这个是与 php 的加速模块 zend相关的,不能省略

解决方法:

[root@lnmp php-5.6.10]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
[root@lnmp php-5.6.10]# ldconfig 

实测可行。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐