• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

对于"make: *** [sapi/fpm/php-fpm] Error 1"的处理

实用代码 开心洋葱 1508次浏览 0个评论
在linux中编译php 5.3,出现如下错误
 
lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt   -o sapi/fpm/php-fpm
ext/standard/dns.o: In function `php_parserr':
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:418: undefined reference to `__dn_expand'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:468: undefined reference to `__dn_expand'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:652: undefined reference to `__dn_expand'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:674: undefined reference to `__dn_expand'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:513: undefined reference to `__dn_expand'
ext/standard/dns.o:/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:519: more undefined references to `__dn_expand' follow
ext/standard/dns.o: In function `zif_dns_check_record':
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:393: undefined reference to `__res_nsearch'
ext/standard/dns.o: In function `zif_dns_get_mx':
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:925: undefined reference to `__res_nsearch'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:936: undefined reference to `__dn_skipname'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:943: undefined reference to `__dn_skipname'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:956: undefined reference to `__dn_expand'
ext/standard/dns.o: In function `zif_dns_get_record':
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:808: undefined reference to `__res_nsearch'
/home/lianjie.ning/php-5.3.6/ext/standard/dns.c:825: undefined reference to `__dn_skipname'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
 
 
方法一、找到Makefile文件,在EXTRA_LIBS最后添加-lresolv
EXTRA_LIBS = -lcrypt -lcrypt -lrt -lmysqlclient -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm –
lxml2 -lz -lm -lcrypt -lresolv

方法二、另有一解决办法:
make ZEND_EXTRA_LIBS='-liconv'


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明对于"make: *** [sapi/fpm/php-fpm] Error 1"的处理
喜欢 (0)

您必须 登录 才能发表评论!

加载中……