CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found.

12300阅读 0评论2015-08-06 qingheliu
分类:LINUX

CMake Error: your CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

解决方法:

yum install gcc-c++

Mysql5.6下的依赖要先安装:

yum  -y install ncurses-devel  openssl-devel

yum  -y install    tcp_wrappers-devel bison-devel bison

yum  -y install gcc-c++

yum -y install cmake

遇到另外一个问题:

[root@backupcodis mysql]# ./scripts/mysql_install_db --user=mysql

WARNING: The host 'backupcodis.jdd.com' could not be looked up with ./bin/resolveip.

This probably means that your libc libraries are not 100 % compatible

with this binary MySQL version. The MySQL daemon, mysqld, should work

normally with the exception that host name resolving will not work.

This means that you should use IP addresses instead of hostnames

when specifying MySQL privileges !

解决方法:

/etc/hosts文件中加入:

127.0.0.1 backupcodis.j**.com ##后面为当前机器的主机名

上一篇:zabbix 监控某个vip 是否可以ping通!
下一篇:Zabbix监控windows时确认key?