日韩性视频-久久久蜜桃-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出错,怎么解决?的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 亚洲色图27p| 国产在线精品福利 | 91蜜桃臀久久一区二区 | 国产jjizz一区二区三区视频 | av直播在线观看 | a级成人毛片 | 狠狠干狠狠干 | 国产三级在线观看 | 一区不卡在线观看 | 精品视频99| 少妇1~3伦理 | 欧美春色 | 日韩视频精品 | 浮力影院草草 | 中国老太婆性做爰 | 成人做爰69片免费观看 | 亚洲高清久久 | 在线天堂中文 | 日韩成人免费电影 | 97爱爱| 99re只有精品 | 大尺度做爰呻吟舌吻情头 | 国产乱妇4p交换乱免费视频 | 欧美大色一区 | 超碰国产在线 | 俺也去婷婷 | 亚洲精品乱码久久久久久蜜桃欧美 | 黄色一级大片在线免费看国产一 | 成人有色视频 | 日韩精品成人一区 | 中国无码人妻丰满熟妇啪啪软件 | 亚洲伦理视频 | 可以直接观看的av | 欧美精品hd | 日本久久久久 | 色av吧| 摸摸大奶子 | 中国女人毛片 | 亚洲第三区 | 欧美三级精品 | 日本一区二区免费电影 | 国产又爽又黄的激情精品视频 | 一级片在线免费观看视频 | 亚洲淫片 | 免费的av网址 | 丁香婷婷九月 | 看免费黄色大片 | 熟妇人妻一区二区三区四区 | 黄色复仇草 | xxxx日本免费 | av免费国产| 成人在线观看一区二区三区 | 天天射天天 | av 一区二区三区 | 91毛片观看 | 国产午夜无码视频在线观看 | 久久精国产 | 91精品亚洲 | 毛片网站在线 | 欧美成人黄色小说 | 国产原创视频在线观看 | 亚洲精品一二三四 | 91蝌蚪少妇偷拍 | 欧美 日韩 国产 成人 在线 91 | 亚洲经典一区二区 | 中文字幕7 | 在线看黄色网 | 亚洲成人网在线播放 | av一二三四区 | 福利片第一页 | 911精品 | 得得的爱在线视频 | 日韩在线中文字幕视频 | 怡红院亚洲| 欧美大片免费播放器 | 三级五月天 | 一级大片黄色 | 免费观看黄一级视频 | 我要看18毛片 | 亚洲成人一区二区 | 伊人网在线视频 | 在线视频 一区二区 | 免费黄色大片网站 | 国产一区二区视频在线观看免费 | 性插免费视频 | 九九视频在线免费观看 | 狠狠鲁影院 | 亚洲青青草原 | 成人av视屏 | 国产婷婷一区二区三区久久 | 亚洲国产免费 | 国产成人无码精品久久久性色 | 国产色婷婷一区二区三区竹菊影视 | 国产午夜精品视频 | 国产精品99一区 | 日韩视频一区在线 | 欧美视频三区 | 深夜的私人秘书 | 国产精品第2页 |