编译安装php7时报错“Please reinstall the iconv library”,也就是让重新安装iconv库。
但yum安装又提示“No package libiconv available”。
无奈,只能下载libiconv源码安装了!
依次执行下列代码:
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar xvzf libiconv-1.14.tar.gz cd libiconv-1.14 ./configure --prefix=/usr/local/libiconv-1.14 make && make install ln -s /usr/local/libiconv-1.14 /usr/local/libiconv
安装完libiconv后,重新配置php,顺利通过!