php編譯安裝報錯:make: *** [sapi/cli/php] Error 1 解決辦法

ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1php

解決方法:

使用:make ZEND_EXTRA_LIBS='-liconv' vim

或者: vim Makefileapi

添加:-lcrypt
blog

而後從新編譯it

相關文章
相關標籤/搜索