Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am installing CMake in ubuntu, after did the last step "make install", This is the result:

-- Install configuration:""
CMake Error at cmake_install.cmake:36 (FILE):
 file cannot create directory: /user/local/doc/cmake-2.8. Maybe need
 administrative privileges.

make: ***[install] Error 1

does it mean it didn't install successfully?

share|improve this question

Installation requires root privilages. So you have to use sudo make install Instead of make install

share|improve this answer

Do you have a specific requirement to run cmake version 2.8.9? Version 2.8.7 is available from the repositories and can be installed by running the command sudo apt-get install cmake

If you must compile a version yourself you will need to run the make install command as sudo make install as your application needs permissions to install itself into the filesystem.

To check for cmake files after compilation, run the command sudo updatedb and then locate cmake

Finally, run cmake from the command line, without any options, specified and you should get some output on using various command flags if the application compiled correctly.

Update: rolled up previous comments into this answer.

share|improve this answer
how to check it was installed ? – weixi Dec 4 '12 at 9:12
I use this method: " ./configure –prefix=/opt/cmake" ---> "make" ----> "sudo make install" --->" /opt/cmake/bin/cmake -version" It shows output: “cmake version 2.8.9”, is it means it install successful?@maggotbrain – weixi Dec 5 '12 at 2:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.