[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CMake Error: Could not find cmake module  (debian and msyql 5.5)

Posted on 2011-10-13
5
Medium Priority
?
2,671 Views
Last Modified: 2012-05-12
hi
I am trying to install mysql 5.5 from source

i have installed

pt-get install cmake g++
apt-get install libncurses5-dev
apt-get install libaio-dev
apt-get install bison

but when running from source ..

i am keep getting CMake Error: Could not find cmake module

i know, i need to add that Cmake in environmental variable

but dont understand.. which file to link to

if you have installed mysql 5.5 from source
please give me advise ..


Actually error

 cmake -L
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/mysql-5.5.16/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/mysql-5.5.16/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
-- Cache values
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
COMMUNITY_BUILD:BOOL=ON
WITH_DEBUG:BOOL=OFF

0
Comment
Question by:fosiul01
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:pilson66
ID: 36961053
install "cmake-data" package

i   cmake-data                                                                             - CMake data files (modules, templates and documentation)
0
 
LVL 29

Author Comment

by:fosiul01
ID: 36961060
hi its already been installed
have a look

 apt-get install cmake-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake-data is already the newest version.
0
 
LVL 8

Expert Comment

by:pilson66
ID: 36961076
maybe need to install gcc, cpp, c++ ?
0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 0 total points
ID: 36961084
they all installed

its been fixed by using

apt-get install build-essential
0
 
LVL 29

Author Closing Comment

by:fosiul01
ID: 36984553
for debian ,

apt-get install build-essential
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question