编译安装PHP8遇到问题:configure: error: iconv does not support errno
错误提示:
configure: error: iconv does not support errno
解决方式:
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
tar -zxvf libiconv-1.16.tar.gz
cd libiconv-1.16
./configure --prefix=/usr/local/libiconv
make && sudo make install
注意: 编译 PHP 时需要带上 --with-iconv=/usr/local/libiconv