red hat 升级 php 5.6,Centos7下编译php5.6.19出错,怎么解决?
第一次编译安装PHP的时候很顺利,因为要增加freetype,所以要重新编译,结果死活就是无法通过configure。
centos7信息
uname -a
Linux dev 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
运行 ./configure 报错
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
运行 grep error config.log
cc: error: unrecognized command line option '-V'
cc: fatal error: no input files
cc: error: unrecognized command line option '-qversion'
cc: fatal error: no input files
conftest.c:9:19: fatal error: stdio.h: No such file or directory
configure:4076: error: in `/usr/local/src/php-5.6.19':
configure:4078: error: cannot run C compiled programs.
按照网上说的方法 在configure后面加上了 --host=x86_64 ,报错
configure: error: in `/usr/local/src/php-5.6.19':
configure: error: C preprocessor "/lib/cpp" fails sanity check
config.log中错误提示,差好几个头文件
cc: error: unrecognized command line option '-V'
cc: fatal error: no input files
cc: error: unrecognized command line option '-qversion'
cc: fatal error: no input files
conftest.c:9:19: fatal error: stdio.h: No such file or directory
configure:4076: error: in `/usr/local/src/php-5.6.19':
configure:4078: error: cannot run C compiled programs.
[root@dev php-5.6.19]# grep error config.log
cc: error: unrecognized command line option '-V'
cc: fatal error: no input files
cc: error: unrecognized command line option '-qversion'
cc: fatal error: no input files
conftest.c:9:19: fatal error: stdio.h: No such file or directory
conftest.c:9:20: fatal error: stdarg.h: No such file or directory
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
cc: error: unrecognized command line option '-qlanglvl=extc89'
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
cc: error: unrecognized command line option '-qlanglvl=ansi'
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
cc: error: unrecognized command line option '-std'
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
:0:1: error: missing '(' after predicate
conftest.c:9:20: fatal error: stdarg.h: No such file or directory
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
:0:1: error: missing '(' after predicate
conftest.c:9:20: fatal error: stdarg.h: No such file or directory
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
cc: error: unrecognized command line option '-Xc'
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std is added to get
conftest.c:10:21: fatal error: limits.h: No such file or directory
| Syntax error
conftest.c:10:21: fatal error: limits.h: No such file or directory
| Syntax error
conftest.c:12:0: fatal error: assert.h: No such file or directory
| Syntax error
conftest.c:12:0: fatal error: assert.h: No such file or directory
| Syntax error
conftest.c:10:21: fatal error: limits.h: No such file or directory
| Syntax error
conftest.c:10:21: fatal error: limits.h: No such file or directory
| Syntax error
conftest.c:10:21: fatal error: limits.h: No such file or directory
| Syntax error
conftest.c:10:21: fatal error: limits.h: No such file or directory
| Syntax error
configure:4478: error: in `/usr/local/src/php-5.6.19':
configure:4480: error: C preprocessor "/lib/cpp" fails sanity check
gcc安装信息
[root@dev php-5.6.19]# rpm -qa | grep glibc
compat-glibc-headers-2.12-4.el7.centos.x86_64
glibc-utils-2.17-106.el7_2.4.x86_64
glibc-common-2.17-106.el7_2.4.x86_64
glibc-devel-2.17-106.el7_2.4.x86_64
glibc-static-2.17-106.el7_2.4.x86_64
glibc-2.17-106.el7_2.4.x86_64
glibc-headers-2.17-106.el7_2.4.x86_64
compat-glibc-2.12-4.el7.centos.x86_64
[root@dev php-5.6.19]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
red hat 升级 php 5.6,Centos7下编译php5.6.19出错,怎么解决?相关推荐
- CentOS7下编译安装libmodbus库
CentOS7下编译安装libmodbus库 下载libdmodbus源代码 编译安装lidmodbus 测试 参考资料 下载libdmodbus源代码 libmodbus官网下载页面如下图所示: 可 ...
- 雷塞SMC304系列控制器VC6.0例程在VS2015下编译遇到的若干问题及解决办法
雷塞SMC304系列控制器VC6.0例程在VS2015下编译遇到的若干问题及解决办法 标签(空格分隔): 雷塞 SM304 WIN10 VS2015 最近由于导师要求,负责喷涂机器人的控制部分,接触到 ...
- 【第一性原理】Centos7下编译并行lammps-7Aug19
LAMMPS即Large-scale Atomic/Molecular Massively Parallel Simulator,可以翻译为大规模原子分子并行模拟器,主要用于分子动力学相关的一些计算和 ...
- centos java 乱码,linux(centos7)下程序中文输出乱码问题的解决
目前的程序代码都是在window编写,编码格式为GBK.转移到linux下,编译正常,在控制台运行时中文输出为乱码.查linux的LANG发现为UTF-8,于是修改为GBK.再次运行程序,依然为乱码. ...
- centos7下编译安装qemu5.0+spice-server最新版
本人基于centos7环境编译安装qemu5.0+spice-server最新版的过程记录,希望对读者有些帮助: #安装gcc 7 sudo yum install centos-release-sc ...
- gcc环境下编译找不到conio.h解决方法
ubuntu下编译遇到 conio.h找不到文件的问题, conio.h非标准库,在windows平台可以,在linux平台用curses.h ubantu下输入 sudo apt-get ...
- centos7二进制安装php,Centos7下编译安装配置Nginx+PHP+MySql环境
序言 这次玩次狠得.除了编译器使用yum安装,其他全部手动编译.哼~ 看似就Nginx.PHP.MySql三个东东,但是它们太尼玛依赖别人了. 没办法,想用它们就得老老实实给它们提供想要的东西. 首先 ...
- linux调用qt生成静态库文件下载,Centos7下编译openssl静态库与QT引用
1.下载openssl版本:https://www.openssl.org/source/old/ 下载地址 2.我们下载版本为:openssl-1.0.2k 3.拷贝到Linux服务器任意目录 4. ...
- centos7下编译openjdk11
源码 https://github.com/unofficial-openjdk/openjdk/releases 直接下载特定的版本jdk-11+28 编译环境centos7 unzip jdk11 ...
最新文章
- 组策略 从入门到精通 (一) 组策略的还原与备份和汇入
- python中requests的常用方法_python3 Requests常用操作
- 飞桨模型保存_史上最全解读|飞桨模型库重大升级,主流算法模型全覆盖
- vba 修改下拉列表_Excel隐藏的超实用技能,涉及VBA技巧,建议【收藏】
- 黑马 程序员——Java基础---IO(下)
- angular 首屏加载优化_[转]Angular4首页加载慢优化之路
- 一年级课程表(4月2日-4月8日)
- IP Multicast: MSDP RPF检测详细规则(转)
- 如何替换mac word中的换行符为空格
- YOLOV5代码解析——优化器
- 霍尼韦尔Granit 1990iSR工业二维码扫描枪
- Echarts 横坐标时间轴,相同的年份只显示第一个,方案记录
- 计算机大连理工三年级下册教案,大连理工大学版信息技术三年级上册教案.doc...
- android 模拟工具 mac,夜神模拟器mac版-夜神安卓模拟器Mac版下载 V3.8.5.5-PC6苹果网...
- 免费AZ-900学习资料
- OnMeasure()
- oracle natural join qualifier,自然连接(natural join)
- 《微波原理与技术》学习笔记1绪论-微波的概念
- C++版本 17:最好的草
- 【74LS273扩展I/O口实验】—— 微机原理实验
热门文章
- Android开发,Error: Failed to find Build Tools revision 24.0.2
- signature=9742dbe4d0ffb25ecc6661da5a37550e,Die Griechische Volkswirtschaft in den siebziger Jahren
- 中国首个海底数据中心样机测试数据揭晓,达世界先进能效水平
- 展望数据中心市场未来十年发展趋势
- Py之pixellib:pixellib库的简介、安装、经典案例之详细攻略
- 成功解决 将xgboost的plot_importance绘图时出现的f0、f1、f2、f3、f4、f5等改为对应特征的字段名
- ML:推荐给小白入门机器学习一系列书籍
- 解决问题ImportError: HDFStore requires PyTables, quot;No module named 'tables'quot; problem importing
- linux sort 命令详解(转 )
- 17.splash_case02