编译php,make test的时候出错,大家帮看看是什么原因。

编译php,make test的时候出错,大家帮看看是什么原因。
#tar zxvf php-5.2.14.tar.gz
#gzip -cd php-5.2.14-fpm-0.5.14.diff.gz | patch -d php-5.2.14 -p1
#cd php-5.2.14/
#./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
#make ZEND_EXTRA_LIBS='-liconv' //上面的都通过了
Build complete.
Don't forget to run 'make test'.
#make test 然后make test 的时候出错。
SKIP ldap_search() bug 48441 - options persists after specifying them in ldap_search [ext/ldap/tests/bug48441.phpt] reason: Can't bind to LDAP Server - [-1] Can't contact LDAP server
PASS Bug #48696 (ldap_read() segfaults with invalid parameters) [ext/ldap/tests/bug48696.phpt]
SKIP ldap_add() - Basic add operation [ext/ldap/tests/ldap_add_basic.phpt] reason: Can't bind to LDAP Server - [-1] Can't contact LDAP server
TEST 2344/8080 [ext/ldap/tests/ldap_add_error.phpt]
如果不理这步。直接安装
#make install
那么
#/usr/local/webserver/php/sbin/php-fpm start的时候,启动不了php-cgi进程。报错:
Starting php_fpm ................................... failed

注:mysql+nginx 都安成功了。就差php(fastcgi)了

第1个回答  推荐于2018-04-24
Can't bind to LDAP Server - [-1]
ldap_open() 函数打开一个到LDAP服务器的联接。
如果出错,返回-1,并在LDAP结构中设置ld_errno域。
建议重下个安装文件试试本回答被网友采纳
第2个回答  2010-10-13
不需要 ldap 就去掉
--with-ldap --with-ldap-sasl
第3个回答  2010-10-17
yum -y install penldap openldap-devel nss_ldap openldap-clients openldap-servers

在最开始安装这些就好了
详情参考

参考资料:

第4个回答  2010-10-15
好难,不会。。。。

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网