安装php8.1 编译时提示configure: error: iconv does not support errno
安装php8.1 编译时提示configure: error: iconv does not support errno
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz tar -xzvf libiconv-1.17.tar.gz cd libiconv-1.17 ./configure --prefix=/usr/local/libiconv
注:已经按如上提示安装了1.7的iconv编译时还是提示 configure: error: iconv does not support errno
解决方法编译php时指定iconv的安装目录
--with-iconv=/usr/local/bin/