在OpenStack云主机CentOS7.2系统上一键安装LNMP1.6或LNMP1.8均失败
本帖最后由 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.
部分日志信息二:# ./configurechecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether make sets $(MAKE)... (cached) yeschecking for gcc... gccchecking whether the C compiler works... noconfigure: error: in `/root/lnmp1.8-full/src/libiconv-1.15':configure: error: C compiler cannot create executablesSee `config.log' for more details
部分日志信息三:configure:4097: checking for C compiler versionconfigure:4106: gcc --version >&5gcc (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 NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc: error: missing argument to '-march='configure:4117: $? = 0configure:4106: gcc -v >&5Using built-in specs.gcc: error: missing argument to '-march='COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapperTarget: x86_64-redhat-linuxConfigured 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-linuxThread model: posixgcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)configure:4117: $? = 0configure:4106: gcc -V >&5gcc: error: missing argument to '-march='gcc: error: unrecognized command line option '-V'gcc: fatal error: no input files
其余日志信息详见附件。请高手亲们不吝赐教,谢谢!
本帖最后由 cgr40610932 于 2021-11-7 17:52 编辑
附上日志文件 这个和用lnmp哪个版本是没关系的,看依赖包安装都是正常的,有可能是你系统环境变量的问题
echo $PATH
echo $LIBS
echo $CFLAGS
分别执行贴出返回结果 licess 发表于 2021-11-7 19:59
这个和用lnmp哪个版本是没关系的,看依赖包安装都是正常的,有可能是你系统环境变量的问题
echo $PATH
ech ...
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
# echo $LIBS
# echo $CFLAGS
cgr40610932 发表于 2021-11-7 22:36
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
方便的话短消息IP、root密码我看一下 licess 发表于 2021-11-8 10:19
方便的话短消息IP、root密码我看一下
在KVM虚拟机上一键安装LNMP成功,而用该KVM虚拟机作为Glance镜像,在OpenStack虚拟机上一键安装LNMP却失败了 cgr40610932 发表于 2021-11-8 22:22
在KVM虚拟机上一键安装LNMP成功,而用该KVM虚拟机作为Glance镜像,在OpenStack虚拟机上一键安装LNMP却失 ...
按错误信息看的话gcc是有问题的,不确定是哪里的问题导致的
可以尝试升级gcc试试看能否解决,https://www.vpser.net/manage/centos-6-upgrade-gcc.html
页:
[1]