php安装libiconv-1.14.tar.gz遇到的问题
2015-09-22 09:54
633 查看
php安装libiconv-1.14.tar.gz遇到的问题
make 安装php时遇到的错误解决方案:
遇到的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/srclibvi 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)根据机器的实际型号进行调整。
相关文章推荐
- thinkphp的目录常量在入口文件index.php里定义
- 【ThinkPHP】验证码
- (转)PHP下编码转换函数mb_convert_encoding与iconv的使用说明
- (转)PHP中构造函数和析构函数解析
- Thinkphp修改默认模板引擎为smarty如何操作
- PHP基础知识
- Lnmp修改php.ini配置以及使exec()函数可用
- php 获取域名的whois 信息
- 【ThinkPHP】关于URL的设置、伪静态
- ThinkPHP-分页效果及自定义类文件引入框架
- php的header函数之设置content-type
- PHP实现搜索相似图片
- php json格式存取数据实例,直接可放php项目直接运行
- thinkphp关于错误显示的问题 设置代码本身的错误提示 不让框架显示他自己的错误提示操作
- 1、杨辉三角的解决思路
- PHP获取MAC地址
- ThinkPHP——登录功能用户名密码判断
- 虚拟机搭建ftp环境
- 使用WebStorm/Phpstorm实现remote host远程开发
- php正则表达式完全教程之精华篇