首页/Home PHP Basics PHP 之 Undefined symbols for architecture x86_64

PHP 之 Undefined symbols for architecture x86_64

PrintE-mail
Thursday, 15 September 2011 21:41  

错误标题

Undefined symbols for architecture x86_64 

详细内容

 

Undefined symbols for architecture x86_64:
"_res_9_init", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
_zif_dns_check_record in dns.o
"_res_9_search", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
_zif_dns_check_record in dns.o
"_res_9_dn_skipname", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_record in dns.o
"_res_9_dn_expand", referenced from:
_zif_dns_get_mx in dns.o
_php_parserr in dns.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

 

解决方案 

编译参数用 --with-mysql=mysqlnd --with-mysqli=mysqlnd 

出错原因

我的情况是,MySQL 安装用的是 binary 安装。

参见

https://bugs.php.net/bug.php?id=55108

完毕。 

 

回复

留个脚印儿吧.


回复