libiconv安装

1.yum安装

yum -y install libevent libevent-devel

2.源码安装

yum -y install libevent-devel
cd /  
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz  
tar -zxvf libiconv-1.15.tar.gz  
cd libiconv-1.15  
./configure --prefix=/usr/local/libiconv  
make && make install


发布了344 篇原创文章 · 获赞 71 · 访问量 69万+
展开阅读全文

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

10-19

报错信息 ``` 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 找不到 明明 路径是存在的 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览