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

     报错:

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




平台介绍:
OS Version:  CentOS release  6.4 (Final)
Nginx Version:  nginx version: nginx/ 1.4 . 3
PHP Version:  PHP  5.5 . 5 (fpm-fcgi)
Mysql Version:  Server version:  5.6 . 10 -log Source distribution
Kernel Version:  2.6 . 32 - 358 .el6.x86_64
IP address:   192.168 . 168.133



 解决方法一:

最后查看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/)

 

 

错误说明

今天在centos 6.3 64位版本上安装PHP5.4.3时在./configure 步骤的时候出现了下面错误
configure: error: Cannot find ldap libraries in /usr/lib
原因是动态链接库地址的问题。

 

解决方法

具体的解决办法如下:
cp -frp /usr/lib64/libldap* /usr/lib/
然后再./configure …即可编译通过


参考:

http://www.mamicode.com/info-detail-1096994.html

http://lovelace.blog.51cto.com/1028430/1314571

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




你可能感兴趣的:(Don't know how to define struct flock on this system, set --enable-opcach=no)