使用ldap错误编译php 5.6

时间:2015-06-15 23:08:10

标签: php ldap build-process

SYSTEM: php 5.6.4 centos 7.1.503(核心)

编译php时出现以下错误:

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

我通过以下编译args得到了它:

sudo ./configure --with-apxs2 --disable-cgi --enable-sockets --enable-pcntl --with-readline --with-zlib --with-openssl --with-curl  --enable-mbstring --with-gettext --enable-soap --enable-wddx --with-tidy --with-jpeg-dir --with-png-dir --with-gd --enable-gd-native-ttf --with-freetype-dir --with-libxml-dir --with-xmlrpc --with-pdo-mysql=mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-config-file-path=/etc/httpd/conf --with-mcrypt --enable-opcache --with-ldap --prefix=/usr/local/php-5.6.4

我不认为它的opcache有关,好像我删除了--with-ldap标志它编译得很好。另外5.5已经编译并运行w / ldap就好了。这个升级到5.6然后窒息而不是那个标志设置。

同样在config.log中,这似乎可能是相关的:

configure:66022: result: no
configure:66025: checking for mmap() using regular file shared memory support
configure:66097: cc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  -L/usr/lib  conftest.c -lmcrypt -lltdl -lldap -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lssl -lcrypto -lcurl -lxml2 -lz -lm -ldl -lfreetype >&5
configure:66097: $? = 0
configure:66097: ./conftest
./configure: line 2331: 29392 Aborted                 (core dumped)     ./conftest$ac_exeext
configure:66097: $? = 134
configure: program exited with status 134
configure: failed program was:
| /* confdefs.h */

0 个答案:

没有答案