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

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?


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


You can install cmake under your home directory. To this end you simply need to run the bootstrap script as follows:

./bootstrap --prefix=$HOME

Then you do not need to use sudo command