本帖最后由 anenv 于 2018-3-21 17:20 编辑
php编译安装错误,php5.5,5.6都试了。安装没有报错提示安装完成,但是没有安装上。
系统是centos6.9。
执行日志里面最后的部分。
-lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o sapi/cli/php
ext/standard/.libs/dns.o: In function `zif_dns_get_mx':
/www/server/php/56/src/ext/standard/dns.c:1041: undefined reference to `__res_nsearch'
/www/server/php/56/src/ext/standard/dns.c:1052: undefined reference to `__dn_skipname'
/www/server/php/56/src/ext/standard/dns.c:1059: undefined reference to `__dn_skipname'
/www/server/php/56/src/ext/standard/dns.c:1072: undefined reference to `__dn_expand'
ext/standard/.libs/dns.o: In function `php_parserr':
/www/server/php/56/src/ext/standard/dns.c:445: undefined reference to `__dn_expand'
/www/server/php/56/src/ext/standard/dns.c:745: undefined reference to `__dn_expand'
/www/server/php/56/src/ext/standard/dns.c:709: undefined reference to `__dn_expand'
/www/server/php/56/src/ext/standard/dns.c:509: undefined reference to `__dn_expand'
ext/standard/.libs/dns.o:/www/server/php/56/src/ext/standard/dns.c:565: more undefined references to `__dn_expand' follow
ext/standard/.libs/dns.o: In function `zif_dns_get_record':
/www/server/php/56/src/ext/standard/dns.c:907: undefined reference to `__res_nsearch'
/www/server/php/56/src/ext/standard/dns.c:941: undefined reference to `__dn_skipname'
ext/standard/.libs/dns.o: In function `zif_dns_check_record':
/www/server/php/56/src/ext/standard/dns.c:414: undefined reference to `__res_nsearch'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
========================================================
|
|