error of compiling cmake

Today I compile the cmake, at the last step of it sudo make install, it give below error:

CMake Error at Utilities/cmake_install.cmake:36 (FILE):
  file INSTALL destination: /usr/local/man/man1 is not a directory.
Call Stack (most recent call first):
  cmake_install.cmake:57 (INCLUDE)
my solution:

sudo make install DESTDIR="/usr/local/"

That's say, we need tell system the target directory which wish to install explicitly.

你可能感兴趣的:(error of compiling cmake)