欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

linux - 编译php5.6 Don't know how to define struct flock on this system

程序员文章站 2022-04-11 14:01:27
...
错误:Don't know how to define struct flock on this system, set --enable-opcache=no
libmcrytp(加密算法扩展库)是手动编译的,这个怎么办呢?

回复内容:

错误:Don't know how to define struct flock on this system, set --enable-opcache=no
libmcrytp(加密算法扩展库)是手动编译的,这个怎么办呢?

引用自http://www.mamicode.com/info-detail-1096994.html
解决方法一:

查看php官方文档解决. 在configure 里面加上 --with-libdir=lib64

解决方法二:

编辑/etc/ld.so.conf

根据系统,加入include /etc/ld.so.conf,

然后执行ldconfig,使其重新加载一次;(如果出错改为vi /etc/ld.so.conf >> include /usr/local/libmcrytp/lib/)

linux - 编译php5.6 Don't know how to define struct flock on this system