liunx php编译安装提示 libiconv相关组件不存在

报错信息

 ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:973: undefined reference to `libiconv_open'
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:1001: undefined reference to `libiconv'
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:1115: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:2551: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:2702: undefined reference to `libiconv'
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:2701: undefined reference to `libiconv'
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:2623: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/home/qyj/Downloads/php-5.6.3/ext/iconv/iconv.c:2577: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1 

按照网上的 方式

  ./configure --prefix=/application/php5.6.3 \
--with-apxs2=/application/apache/bin/apxs \
--with-mysql=/application/mysql \
--with-iconv-dir=/usr/local/libiconv \
--enable-xml \
--disable-rpath \
--enable-safe-mode \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--enable-mbregex \
--enable-mbstring \
--enable-gd-native-ttf \
--enable-pcntl \
--enable-sockets \
--enable-zip \
--enable-soap \
--enable-short-tags \
--enable-zend-multibyte \
--enable-static \
--enable-ftp 

参数加好 make &&make install 试了好几遍都不行 路径明明都配好了 libiconv 找不到 明明 路径是存在的

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐