安装编译安装cmake 报错- [root@localhost ~]# cd /usr/local/src/
- [root@localhost src]# tar xzvf cmake-2.8.4.tar.gz
- [root@localhost src]# cd cmake-2.8.4
- [root@localhost cmake-2.8.4]# ./bootstrap
- ---------------------------------------------
- CMake 2.8.4, Copyright 2000-2009 Kitware, Inc.
- ---------------------------------------------
- Error when bootstrapping CMake:
- Cannot find appropriate C compiler on this system.
- Please specify one using environment variable CC.
- See cmake_bootstrap.log for compilers attempted.
-
- ---------------------------------------------
- Log of errors: /usr/local/src/cmake-2.8.4/Bootstrap.cmk/cmake_bootstrap.log
- ---------------------------------------------
复制代码 报错:缺少C的编译器。
解决办法:安装gcc编译器- [root@localhost cmake-2.8.4]# ./bootstrap
- ---------------------------------------------
- CMake 2.8.4, Copyright 2000-2009 Kitware, Inc.
- C compiler on this system is: cc
- ---------------------------------------------
- Error when bootstrapping CMake:
- Cannot find appropriate C++ compiler on this system.
- Please specify one using environment variable CXX.
- See cmake_bootstrap.log for compilers attempted.
- ---------------------------------------------
- Log of errors: /usr/local/src/cmake-2.8.4/Bootstrap.cmk/cmake_bootstrap.log
- ---------------------------------------------
复制代码 报错:缺少C++编译器。
安装gcc-c++编译器cmake mysql出错- -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
- CMake Error at cmake/readline.cmake:82 (MESSAGE):
- Curses library not found. Please install appropriate package,
-
- remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
- Call Stack (most recent call first):
- cmake/readline.cmake:126 (FIND_CURSES)
- cmake/readline.cmake:216 (MYSQL_USE_BUNDLED_LIBEDIT)
- CMakeLists.txt:250 (MYSQL_CHECK_READLINE)
-
- -- Configuring incomplete, errors occurred!
复制代码 解决办法:- [root@localhost mysql-5.5.13]# rm CMakeCache.txt
- [root@localhost mysql-5.5.13]# yum install ncurses-devel
复制代码 警告- Warning: Bison executable not found in PATH
复制代码 解决办法: |