make install error

Hi, I encountered the following error while installing the cmake on my server. how can i fix this

CMake Error at Source/kwsys/cmake_install.cmake:46 (file):
file cannot create directory: /usr/local/doc/cmake-3.22/cmsys. Maybe need
administrative privileges.
Call Stack (most recent call first):
cmake_install.cmake:47 (include)

You likely need to either do sudo make install to be able to write to that location, make DESTDIR=/somewhere/else install to relocate the entire installation ot somewhere else, or update the CMAKE_INSTALL_PREFIX to be somewhere you can write to.