24

Possible Duplicate:
install CMake occurs a error, how to deal with it?

i installed the CMake in ubuntu, how to check if it installed ?

2
  • I believe that I was answering your original question here. Dec 5, 2012 at 2:34
  • 1
    This has nothing to do with Ubuntu One. Also, please don't re-post the same question multiple times. Once is enough. If you want cmake in Ubuntu, simply run sudo apt-get install cmake and you will have it installed.
    – dobey
    Dec 5, 2012 at 2:35

2 Answers 2

44

Just type cmake --version in terminal, If cmake is not installed you will command not found error, If cmake is installed , you can see the cmake version

1
  • I'n my case I also needed to know the version, so this was the best answer. Aug 21, 2019 at 9:46
0

open your terminal and type as

dpkg --get-selections | grep cmake  

If it was installed then you will get install message after them like below .

$ dpkg --get-selections | grep cmake
cmake                           install
cmake-data                      install

$

Hope that hlps .

credit goes Here :http://www.howtogeek.com

5
  • Will this command work for manually compiled applications? Dec 5, 2012 at 3:21
  • 1
    It won't work if cmake is installed from source
    – Tachyons
    Dec 5, 2012 at 4:12
  • 3
    cool but " which cmake " can help
    – Raja G
    Dec 5, 2012 at 5:04
  • Please remove the dot from the code line, it is literally wrong!
    – Mehdi
    Mar 12, 2021 at 18:08
  • dot removed, bad image replaced with text.
    – Hannu
    Apr 24, 2022 at 16:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .