ubuntu16.04安装libiconv

来源:互联网 发布:thinkphp5源码下载 编辑:程序博客网 时间:2024/05/21 06:32
  1. 下载http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz

  2. fix a bug

--- a/srclib/stdio.in.h+++ b/srclib/stdio.in.h@@ -695,8 +695,10 @@ _GL_CXXALIASWARN (gets); /* 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.  */+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); #endif+#endif
  1. 配置编译安装
$ ./configure --prefix=/usr/local$ make$ make install
0 0
原创粉丝点击