编译php5.6.1出错set --enable-opcache=no

环境:CENTOS6.5

PHP5.6.1

编译参数:

./configure --prefix=/usr/local/php56 --with-config-file-path=/usr/local/php56/etc --enable-inline-optimization --disable-rpath --enable-shared --enable-opcache --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd --with-gettext --enable-mbstring --with-iconv --with-mcrypt=/usr/local/libmcrytp/ --with-mhash --with-openssl --enable-bcmath --enable-soap --with-libxml-dir --enable-pcntl --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--enable-sockets --with-curl --with-zlib --enable-zip --with-bz2 --with-readline --with-jpeg-dir=/usr/local/jpeg  --with-png-dir=/usr/local/libpng

出错内容:configure: error: Don‘t know how to define struct flock on this system, set --enable-opcache=no

常见解决办法:

编辑/etc/ld.so.conf

根据系统,加入文件/etc/ld.so.conf,然后执行ldconfig,使其重新加载一次;

有时候,如果自己的libmcrytp(加密算法扩展库)是手动编译的话,只把这个/usr/local/libmcrytp/lib/加入到/etc/ld.so.conf,然后执行ldconfig,使其重新加载一次;

时间: 2024-08-01 20:29:35

编译php5.6.1出错set --enable-opcache=no的相关文章

编译php-5.5.15出错,xml2-config not found

今天在centos上编译php-5.5.15, [plain] view plaincopy cd php-5.5.15 ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --enable-fpm 返回错误: [plain] view plaincopy checking libxml2 install dir... no checking for xml2-config path..

编译php-5.6出错,xml2-config not found

今天在centos上编译PHP-5.6 cd php-5.6 ./configure --prefix=/usr/local/php5.6/ --with-apxs2=/usr/local/apache.2.2/bin/ apxs 返回错误: checking libxml2 install dir... no checking for xml2-config path... configure: error: xml2-config not found. Please check your l

编译PHP5缺t1lib包安装

t1lib_doc.dvi Error解决: 1. 下载t1lib-5.1.2.tar.gz2. 解决依赖关系:sudo apt-get build-dep t1lib 3. 安装:./configure & make without_doc & make install 4. 编译php5 时在./configure后加上 –with-t1lib=/usr/local/share/t1lib

衡阳高防服务器租用-CentOS6.2服务器环境配置:源码编译PHP5.4

衡阳高防服务器租用-CentOS6.2服务器环境配置:源码编译PHP5.4 在 开始之前,先把关于libmcrypt库的问题再说说,我也是在安装过程遇到的,因为原本以为yum可以安装好一切依赖包的,但在Centos6.2 64位环境下就是这么奇怪,yum安装上的libmcrypt始终都在编译过程提示缺少一个.h文件,为此差点碰伤了头.经过过多试验,总算把 libmcrypt这块先弄好了,否则到了PHP的安装环境是做不来的.安装PHP5.4.13要做的相关准备工作有除了下载PHP5.4.13的源码

Centos7 编译 php5.6出错

编译的最后报错: configure: error: xml2-config not found. Please check your libxml2 installation. 查询本地已经安装了libxml2,后面发现其实是还欠缺libxml2-devel,再次安装 yum install libxml2* -y 编译成功

编译 php-5.5.26.tar.gz

需要GD库大于2.1版本 编译GD库请参考文章 安装GD库 ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/  --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg/ --with-freetype-dir=/usr/local/freetype/ --with-gd --with-mcrypt=/u

VIM+qmake编译示例程序HelloQt出错问题的解决(文件名一定要使用.cpp,否则就会默认使用gcc编译,当然通不过)

之前看到很多初学Qt的Linux友们在使用qmake编译第一个HelloQt或者HelloWorld程序时报错,并且始终找不到原因. 前几天我也遇到了同样的问题,我用的是<精通Qt4编程>书上的例子,将代码用Vim输入之后qmake,再make结果报错N行, 大部分是说什么什么为定义之类的,查了半天发现是只要把开头的几行#include<QtGui/..>里的文件包含进去就会出错, 但是不包含也不行,(后来发现网上不少人也在问这个问题,可是没说解决的),花了几个小时时间无果而终.

编译php5.6

没想到编译个LAMP这么麻烦又简单. 按照官网的做就可以了,只是我在CentOs下一直会提示出现这个错误 按照官网的安装方法:install 用下面的参数: ./configure --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql --prefix=/usr/local/php5.6 --with-iconv-dir=/usr/local/lib 总是提示下面这个错误: /php-5.6.0/ext/iconv/iconv.c:2512: m

centos7编译php-5.6.11

[安装依赖] yum -y install epel-releaseyum groupinstall "development tools"yum -y install mhash mhash-devel mcryptyum -y install zlib zlib-devel libjpeg libjpeg-devel freetype freetype-devel gd gd-devel curl curl-devel libxml2 libxml2-devel libxslt l