centos下安装libiconv
1.wget -c http://www.itkb.ro/userfiles/file/libiconv-glibc-2.16.patch.gz
2.cd libiconv-1.14/srclib3.--- 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
本文介绍在CentOS系统中安装libiconv的具体步骤,包括下载补丁文件、配置编译参数、编译安装等过程。适用于需要在CentOS环境中使用字符集转换功能的开发者。
1536

被折叠的 条评论
为什么被折叠?



