Ubuntu – 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?

Best Answer

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