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 1

解决方法:

使用:make ZEND_EXTRA_LIBS='-liconv' 

或者: vim Makefile

添加:-lcrypt
php编译安装报错:make: *** [sapi/cli/php] Error 1 解决办法_第1张图片

然后重新编译

转载于:https://www.cnblogs.com/zhanmeiliang/p/6203473.html

你可能感兴趣的:(php编译安装报错:make: *** [sapi/cli/php] Error 1 解决办法)