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)根据机器的实际型号进行调整。

     

  • 相关阅读:
    小数据池以及深浅拷贝
    字典的初识,了解
    元组:认识,索引 切片
    列表的认识,嵌套,增删改查
    bool、字符串方法、for循环
    字符串格式化输出、while循环、运算符.
    Python的基础知识与历史应用
    git错误:error: failed to push some refs to 'https://...'
    golang中gin框架使用logrus
    golang中如何监控多个goroute协程是否执行完成
  • 原文地址:https://www.cnblogs.com/tangshengwei/p/4828092.html
Copyright © 2011-2022 走看看