您的位置:首页 > 运维架构 > Linux

centos下安装libiconv

2016-05-15 19:59 507 查看
centos下安装libiconv

1.wget -c http://www.itkb.ro/userfiles/file/libiconv-glibc-2.16.patch.gz
2.cd libiconv-1.14/srclib

3.--- srclib/stdio.in.h.orig      2011-08-07 16:42:06.000000000 +0300

+++ srclib/stdio.in.h   2013-01-10 15:53:03.000000000 +0200

@@ -695,7 +695,9 @@

 /* It is very rare that the developer ever has full control of stdin,

    so any use of gets warrants an unconditional warning.  Assume it is

    always declared, since it is required by C89.  */

-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)

+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

+#endif
 #endif

4. ./configure --prefix=/usr/local/libiconv

5.make

6.make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: