php5.6 mac 编译安装错误

解决方法:https://bugs.php.net/bug.php?id=71343

php7 makefile中搜索并删除如下内容

-L/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib

详细报错:

Undefined symbols for architecture x86_64:

“_append_history”, referenced from:

_readline_shell_run in readline_cli.o

“_history_list”, referenced from:

_zif_readline_list_history in readline.o

“_libiconv”, referenced from:

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_appendl in iconv.o

_php_iconv_stream_filter_append_bucket in iconv.o

“_libiconv_close”, referenced from:

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

_php_iconv_stream_filter_factory_create in iconv.o

“_libiconv_open”, referenced from:

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

_php_iconv_stream_filter_factory_create in iconv.o

“_rl_done”, referenced from:

_zif_readline_info in readline.o

“_rl_mark”, referenced from:

_zif_readline_info in readline.o

“_rl_pending_input”, referenced from:

_zif_readline_info in readline.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [sapi/cli/php] Error 1

发表评论

电子邮件地址不会被公开。 必填项已用*标注