Rootop 服务器运维与web架构

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

在centos6.5上编译php-5.5.14时报错:

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

这个错误第一次见到,估计是新版本的问题,也没找到具体解释,解决方法:

编辑 /etc/ld.so.conf  添加一行

/usr/local/lib

保存退出,执行:

ldconfig

重新编译即可。

估计是新版本php编译的时候没有自动去/usr/local/lib下搜寻库文件。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/2752.html

作者:Venus

服务器运维与性能优化

评论已关闭。