编译php7时报错
/server/php-7.0.0/ext/iconv/iconv.c:1505: undefined reference to `libiconv_open'
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
.configure --prefix=/usr/local/libiconv
make
make install
然后再编译php7的时候 加上
./configure --prefix=/alidata/server/php7 \
--with-config-file-path=/alidata/server/php7/etc \
--with-iconv=/usr/local/libiconv \
--with-mcrypt \
--with-mcrypt \
--enable-mysqlnd --with-gd \
.....
已有 0 条评论