在OpenStack云主机CentOS7.2系统上一键安装LNMP1.6或失败
日志https://cowtransfer.com/s/75f54989bb1d46口令qim2js
configure: error: in `/root/lnmp1.6-full/src/libiconv-1.15':
configure: error: C compiler cannot create executables
。。。。。。
-- Running cmake version 2.8.11
-- Found Git: /bin/git (found version "1.8.3.1")
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/lnmp1.6-full/src/mysql-5.5.62/CMakeFiles/CMakeTmp
Run Build Command:/bin/gmake "cmTryCompileExec1687307722/fast"
/bin/gmake -f CMakeFiles/cmTryCompileExec1687307722.dir/build.make
CMakeFiles/cmTryCompileExec1687307722.dir/build
gmake: Entering directory
`/root/lnmp1.6-full/src/mysql-5.5.62/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/root/lnmp1.6-full/src/mysql-5.5.62/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec1687307722.dir/testCCompiler.c.o
/bin/cc -o CMakeFiles/cmTryCompileExec1687307722.dir/testCCompiler.c.o -c
/root/lnmp1.6-full/src/mysql-5.5.62/CMakeFiles/CMakeTmp/testCCompiler.c
cc: error: missing argument to ‘-march=’
gmake: Leaving directory
`/root/lnmp1.6-full/src/mysql-5.5.62/CMakeFiles/CMakeTmp'
gmake: ***
Error 1
gmake: *** Error 2
猜测可能是因为之前export了某些参数或者环境变量设置有问题 本帖最后由 littlew 于 2022-10-18 13:55 编辑
这个不太清楚,我是在搭建了openstack后再云主机上进行了离线跑包,和正常的跑包都不行,没有进行过什么操作,如果想要知道哪里改动过该怎么查看
littlew 发表于 2022-10-18 13:54
这个不太清楚,我是在搭建了openstack后再云主机上进行了离线跑包,和正常的跑包都不行,没有进行过什么操 ...
gcc --version
g++ --version
看一下是否和安装的一样
history看是否有export的记录
看一下 ~/.bashrc 、/etc/profile 等地方是否有export 的语句是什么类型的,也有可能还有其他的文件有同样的设置
另外感觉你源可能也有问题看安装的软件包
最简单方法就是自己装一个完全纯净的系统
页:
[1]