VPS侦探论坛

 找回密码
 注册
查看: 7155|回复: 6

在OpenStack云主机CentOS7.2系统上一键安装LNMP1.6或LNMP1.8均失败

[复制链接]
发表于 2021-11-7 17:47:53 | 显示全部楼层 |阅读模式

本帖最后由 cgr40610932 于 2021-11-7 17:54 编辑

============================== Check install ==============================
Checking ...
Error: Nginx install failed.
Error: MySQL install failed.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

部分日志信息一:
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/lnmp1.8-full/src/libiconv-1.15':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'. Stop.


部分日志信息二:
[root@lnmp40610932 libiconv-1.15]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/lnmp1.8-full/src/libiconv-1.15':
configure: error: C compiler cannot create executables
See `config.log' for more details

部分日志信息三:
configure:4097: checking for C compiler version
configure:4106: gcc --version >&5
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc: error: missing argument to '-march='
configure:4117: $? = 0
configure:4106: gcc -v >&5
Using built-in specs.
gcc: error: missing argument to '-march='
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.re
dhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --ena
ble-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=g
nu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --wi
th-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 --b
uild=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
configure:4117: $? = 0
configure:4106: gcc -V >&5
gcc: error: missing argument to '-march='
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files



其余日志信息详见附件。请高手亲们不吝赐教,谢谢!


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-11-7 17:50:47 | 显示全部楼层


本帖最后由 cgr40610932 于 2021-11-7 17:52 编辑

附上日志文件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-11-7 19:59:20 | 显示全部楼层

这个和用lnmp哪个版本是没关系的,看依赖包安装都是正常的,有可能是你系统环境变量的问题
echo $PATH
echo $LIBS
echo $CFLAGS
分别执行贴出返回结果
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-11-7 22:36:31 | 显示全部楼层



licess 发表于 2021-11-7 19:59
这个和用lnmp哪个版本是没关系的,看依赖包安装都是正常的,有可能是你系统环境变量的问题
echo $PATH
ech ...

[root@lnmp40610932 ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
[root@lnmp40610932 ~]# echo $LIBS

[root@lnmp40610932 ~]# echo $CFLAGS
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-11-8 10:19:39 | 显示全部楼层

cgr40610932 发表于 2021-11-7 22:36
[root@lnmp40610932 ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
[roo ...

方便的话短消息IP、root密码我看一下

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2021-11-8 22:22:47 | 显示全部楼层

licess 发表于 2021-11-8 10:19
方便的话短消息IP、root密码我看一下

在KVM虚拟机上一键安装LNMP成功,而用该KVM虚拟机作为Glance镜像,在OpenStack虚拟机上一键安装LNMP却失败了
发表于 2021-11-9 13:51:07 | 显示全部楼层

cgr40610932 发表于 2021-11-8 22:22
在KVM虚拟机上一键安装LNMP成功,而用该KVM虚拟机作为Glance镜像,在OpenStack虚拟机上一键安装LNMP却失 ...

按错误信息看的话gcc是有问题的,不确定是哪里的问题导致的
可以尝试升级gcc试试看能否解决,https://www.vpser.net/manage/centos-6-upgrade-gcc.html
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-28 05:35 , Processed in 0.028590 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表