configure: error: Please reinstall the iconv library.
今天在编译安装php5.6.10的时候出现这个报错
然后怎么都解决不了,度娘也没有找到方法,于是仔细看了下配置
./configure \
--prefix=/usr/local/php5.6.10 \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-xmlrpc \
--with-openssl \
--with-zlib \
--with-freetype-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-iconv=/usr/local/libiconv \
--enable-short-tags \
--enable-sockets \
--enable-zend-multibyte \
--enable-soap \
--enable-mbsreing \
--enable-static \
--enable-gd-native-ttf \
--with-curl \
--with-xsl \
--enable-ftp \
--with-libxml-dir
注意--with-iconv=/usr/local/libiconv \ 发现这个包没有安装造成的