ubuntu下cmake常見兩個錯誤的解決
今天在用原始碼安裝mysql的時候遇到下面的兩個問題
一、提示“CMAKE_CXX_COMPILER-NOTFOUND ”。
具體形式:
Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.
Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
解決方法:
sudo apt-get install g++
二、提示:
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/mm/.kde/share/apps;/usr/share/kde4/apps
解決方法:
sudo apt-get install kdelibs5-dev