日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

red hat 升级 php 5.6,Centos7下编译php5.6.19出错,怎么解决?

發布時間:2025/3/21 php 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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出错,怎么解决?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 男人天堂新地址 | 欧美日韩一区二区中文字幕 | 亚洲第一字幕 | jiz亚洲 | 久久99精品国产麻豆婷婷洗澡 | 成人黄色性视频 | 欧美 日韩 国产 一区 | 国产精品亚洲成在人线 | 国产第一页av| 久久精品亚洲一区二区 | 国内外成人免费视频 | 日韩成人性视频 | 国产情侣一区二区 | h片免费在线观看 | 国产第4页| 先锋影音av在线资源 | 国产美女无遮挡免费 | 美女丝袜av| 在线观看h网站 | 国产美女在线免费观看 | 香蕉视频最新网址 | 日本特级淫片 | 亚洲成a人v欧美综合天堂麻豆 | 成人福利在线观看 | 无码成人一区二区 | 欧美日韩一级在线观看 | 九七av| 欧美三级韩国三级日本三斤在线观看 | 精品成在人线av无码免费看 | 久久精品视频1 | av网址在线播放 | 91精品国产高清一区二区三区蜜臀 | 91超碰国产在线 | 中文字幕在线观看免费 | 色欲亚洲Av无码精品天堂 | 麻豆av免费在线观看 | 少妇av| 欧洲成人在线 | 色偷偷免费 | 男人天堂网在线 | 欧美精品一级二级 | 日韩激情欧美 | 红桃视频成人在线 | 日韩激情小说 | 91九色国产在线 | 黄色成人免费网站 | 国产成人久久精品麻豆二区 | av在线不卡免费 | 成人免费毛片果冻 | 国产精品高潮呻吟视频 | 亚洲一区91 | 日本a免费 | 国内精品视频在线 | 国产码视频 | 森泽佳奈作品在线观看 | 精品国产一区二 | 色呦呦在线看 | 日韩一级免费观看 | 亚洲伦理在线 | 亚洲色图36p | 亚洲av毛片一区二二区三三区 | 国产精品久久网站 | 男女作爱免费网站 | 日本一区二区三区四区视频 | 在线天堂视频 | 欧美精品aaa | 国产美女精品久久 | 国产高清在线观看视频 | 美女极度色诱图片www视频 | 久久黄色影院 | 日韩熟女一区二区 | 欧美视频在线观看一区二区 | 欧美视频一区二区三区四区在线观看 | 一级全黄男女免费大片 | 波多野结衣在线一区二区 | 婷婷开心激情网 | 精品人妻无码一区 | 伊人激情网| 色欧美视频 | 国产一线二线三线女 | 国产精品久久久久久久免费 | 操欧美女| 男女男精品网站 | 国产精品6| 日本妇乱大交xxxxx | 九色视频国产 | julia一区二区三区中文字幕 | 五月深爱网 | 在线观看 一区 | 韩国一区二区三区在线观看 | √天堂中文官网8在线 | 少妇野外性xx老女人野外性xx | 18禁肉肉无遮挡无码网站 | 欧美一级艳片视频免费观看 | 草色噜噜噜av在线观看香蕉 | 91免费在线播放 | 韩日a级片 | 日韩操| 免费一级a毛片 |