make install报错_cmake_install.cmake:42 (include)

[100%] Built target foo
Install the project...
-- Install configuration: ""
CMake Error at Source/kwsys/cmake_install.cmake:41 (file):
  file cannot create directory: /usr/local/doc/cmake-3.16/cmsys.  Maybe need
  administrative privileges.
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)


Makefile:76: recipe for target 'install' failed
make: *** [install] Error 1

解决办法:

sudo make install

你可能感兴趣的:(linux)