php5.6.11编译安装报错configure: error: Don't know how to define struct flock on this system

centos 6.8 32位系统下,安装php.5.6.11是出现这个错误

解决办法:


1

2

3

4

vim /etc/ld.so.conf.d/local.conf     # 编辑库文件

/usr/local/lib                       # 添加该行

:wq                                  # 保存退出

ldconfig -v                          # 使之生效

注意事项:

这里添加的库文件路径一定要和你系统平台arch一致,32bit的系统直接添加/usr/local/lib即可,64bit系统要填加/usr/local/lib64.否则依旧会报错,我当时就是添加了/usr/local/lib死活编辑不了,后来更改为/usr/local/lib64才可以。

php5.6.11编译安装报错configure: error: Don't know how to define struct flock on this system

时间: 2024-08-05 07:06:15

php5.6.11编译安装报错configure: error: Don't know how to define struct flock on this system的相关文章

php 编译安装报错 configure: error: mcrypt.h not found. Please reinstall libmcrypt.

编译安装php时报错的解决方法: 错误一:configure: error: mcrypt.h not found. Please reinstall libmcrypt. 解决办法:需要安装Libmcrypt wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz        tar -zxvf libmcrypt-2.5.8.tar.gz        cd /usr/local/

nginx安装报错./configure: error: the http rewrite module requires the pcre library.

nginx编译时报错: ./configure: error: the http rewrite module requires the pcre library. 解决方法: [[email protected] nginx-1.5.9]#  yum install zlib-devel -y

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt.

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt. 转载2016-04-25 12:40:44 标签:linuxitphp 解决方法: 1.为系统安装perl-Geo-IP,默认yum源中没有这个包,特意安装epel第三方yum源[[email protected] ~] rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rp

linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.

linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql. 2013-03-04 15:34wdjhz | 分类:服务器软件 | 浏览5318次 configure: error: Cannot find MySQL header files under /usr/include/mysql.Note that the MySQL client library is not bun

VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe

今天碰到这个问题,网上找了好久, 解决方法如下 VS2013编译protobuf报错:error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe 方法一 右键点击工程 -> 属性 -> C/C++ -> 常规 -> SDL检查 改为:否 (/sdl-) 编译 O了! 方法二 右键点击工程 -> 属性 -> C/C++ ->预处理器 添加宏定义 _SCL_SECUR

kubernetes安装报错:Error: docker-ce-cli conflicts with

Centos7.6上yum安装kubernetes报错:Error: docker-ce-cli conflicts with 2:docker-1.13.1-91.git07f3374.el7.centos.x86_64You could try using --skip-broken to work around the problemYou could try running: rpm -Va --nofiles --nodigest 原因:yum安装kubernetes之前已经安装过do

PHP编译安装报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt

我是在CentOS6.5安装php5.5.28这个版本,PHP编译代码如下: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-gd --with-ico

安装iamp模块,编译报错configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

yum install libc-client-devel cd /root/lnmp1.0-full/php-5.3.17/ext/imap /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl 执行./configure --with-php-config=/usr/local/php/bin/php-confi

安装zabbix报错configure: error: libcurl library not found

libcurl 和libcurl-devel都已经安装 且大于7.13.1 但还是报错,这时需要在configure 指定curl路径即可 ./configure --prefix=/usr/local/zabbix --enable-server --enable-proxy --enable-agent --with-mysql=/usr/bin/mysql_config --with-net-snmp --with-libcurl=/usr/bin/curl-config  --with-