ubuntu 安装iconv 库
来源:互联网 发布:js动态创建节点 编辑:程序博客网 时间:2024/06/05 07:11
包的下载页面http://www.gnu.org/software/libiconv/
$ ./configure --prefix=/usr/local$ make$ make install出现error: ‘gets’ undeclared here (not in a function) 错误,解决办法1.
- wget -c http://www.itkb.ro/userfiles/file/libiconv-glibc-2.16.patch.gz
- cd libiconv-1.14/srclib
- patch -p1 stdio.in.h
这个补丁的内容如下
- --- 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第二种 改
libiconv-1.14/srclib/stdio.in.h在stdio.in.h中找到 //_GL_WARN_ON_USE (gets, "gets is a securityhole - 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
0 0
- ubuntu 安装iconv 库
- php linux iconv安装
- iconv库的使用
- android 引入 iconv 库
- VC编译iconv库
- iconv
- iconv
- iconv
- iconv
- iconv
- iconv
- iconv
- iconv
- ubuntu文本编码转换工具iconv
- Windows下PHP安装iconv【矫正版】
- iconv库移植到ARM
- VS 2008 编译iconv库
- ubuntu 修改txt文件编码方式(iconv)
- 关于Java泛型的小知识点
- VS内存断点
- AsyncTask的简单用法和实例
- Java:十进制转十六进制
- tddl diamond配置
- ubuntu 安装iconv 库
- stm32学习之环境搭建
- 无处不在的蓝牙—真的很危险吗?
- layout_weight/weightSum详解
- C++与STL再回顾
- 纪念自己开通博客
- java BIO NIO AIO的理论
- HDU——2094产生冠军
- JQuery上传插件Uploadify