编译PHP8.3出现checking if iconv supports errno... no

image.png
原来的:

./configure --enable-static

把原来的libiconv卸载并且重新设置成下面这样的新的参数

./configure --enable-static --prefix=/usr/local/libiconv

然后就可以正常编译PHP了
image.png