zoukankan      html  css  js  c++  java
  • php安装libiconv-1.14.tar.gz遇到的问题

    php安装libiconv-1.14.tar.gz遇到的问题                                                   

    遇到的Error code

    In file included from progname.c:26:0: ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ^ make[2]: *** [progname.o] Error 1 make[2]: Leaving directory `/usr/local/directadmin/custombuild/libiconv-1.14/srclib' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/directadmin/custombuild/libiconv-1.14/srclib' make: *** [all] Error 2 ******************************************* ******************************************* Cannot find /usr/local/bin/php Please recompile php with custombuild, eg: cd /usr/local/directadmin/custombuild ./build all d This appears to be a 64-bit system. a common cause of http/php compile failures is mentioned here: http://help.directadmin.com/item.php?id=213 ******************************************* *******************************************

    解决方案:                                                                              

    cd /tmp/libiconv-1.14/srclib

    vi stdio.in.h

    找到这行内容:
    _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也要包括。



    make 安装php时遇到的错误解决方案:                                                

    ln -s /usr/include/i386-linux-gnu/zconf.h /usr/include/
    
    (i386-linux-gnu)根据机器的实际型号进行调整。

     

  • 相关阅读:
    CSS笔记
    WebStorm快捷键
    单例模式详解
    JS正则表达式
    Java NIO 详解(二)
    Java NIO 详解(一)
    【Java并发编程】之十六:深入Java内存模型——happen-before规则及其对DCL的分析(含代码)
    Go 普通LOG输出
    Go TCP网路程序编写
    Go 语言官方包函数中文翻译
  • 原文地址:https://www.cnblogs.com/tangshengwei/p/4828092.html
Copyright © 2011-2022 走看看