forest 发表于 2017-4-17 13:51:57

LNMP 1.2 Mysql安装失败 大家帮忙看看log

见附件,请帮看下我的问题所在,谢谢

licess 发表于 2017-4-17 16:39:28


Error: Package: gcc-c++-4.4.7-17.el6.x86_64 (Base)
         Requires: gcc = 4.4.7-17.el6
         Installed: gcc-4.4.7-18.el6.x86_64 (@base)
               gcc = 4.4.4-15.el6
               gcc = 4.4.7-18.el6
         Available: gcc-4.4.7-17.el6.x86_64 (Base)
               gcc = 4.4.7-17.el6
               gcc = 4.4.4-15.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

。。。。。。
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
。。。。。。
CMake Error at /usr/share/cmake/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)


CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test HAVE_PEERCRED - Failed
-- Library mysqlclient depends on OSLIBS -lpthread;/usr/lib64/libz.so;m;rt;dl
-- Googlemock was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.
-- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80
-- Library mysqlserver depends on OSLIBS -lpthread;/usr/lib64/libz.so;m;rt;crypt;dl
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- COMPILE_DEFINITIONS: HAVE_CONFIG_H
-- CMAKE_C_FLAGS:-Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement
-- CMAKE_CXX_FLAGS:
-- CMAKE_C_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO:-DDBUG_OFF
-- Configuring incomplete, errors occurred!
See also "/root/Downloads/lnmp1.2-full/src/mysql-5.6.23/CMakeFiles/CMakeOutput.log".
See also "/root/Downloads/lnmp1.2-full/src/mysql-5.6.23/CMakeFiles/CMakeError.log".
解决方法:
yum clean all
yum makecache

yum install gcc gcc-c++ 可以正常安装的话,再重新安装lnmp就行了

forest 发表于 2017-4-17 18:01:27

按您的方法执行,仍然失败

非常感谢您的回复

licess 发表于 2017-4-18 09:09:01

回复 3# 的帖子

yum clean all
rpm --rebuilddb

yum install gcc gcc-c++ 如果正常的话再重做lnmp就可以了
还不行就只能换其他发行版或付费排查问题
页: [1]
查看完整版本: LNMP 1.2 Mysql安装失败 大家帮忙看看log