我收到此错误:
-lm -lxml2 -lz -liconv -lm -lxslt -lxml2 -lz -licucore -lm -o sapi/cgi/php-cgi
Undefined symbols for architecture x86_64:
"_libiconv_open", referenced from:
_convert in encodings.o
"_libiconv", referenced from:
_convert in encodings.o
"_libiconv_close", referenced from:
_convert in encodings.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
我尝试了网上找到的许多技巧,但都没有用。我尝试修补 ext/iconv/iconv.c 并重新编译 iconv,但没有成功。我正在运行 OSX 10.7.4