System Integrity Protection (SIP, introduced with macOS 10.11)
prevents you from writing into various system directories (like
/usr) even as the root user. You can either install cmake to a
different location (like /usr/local, which apparently is not
protected), or disable SIP entirely (which is not recommended).
Wikipedia article for more information on SIP.
Am 15.10.19 um 07:05 schrieb Jeffrey
I'm building CMake cmake-3.15.4.tar.gz on OS X 10.12. The machine is
stripped down, and only has the COmmand Line tools. No Xcode and
I configured with:
Configure appears OK. Make appears OK. Install is failing:
$ sudo make install VERBOSE=1
[100%] Built target foo
cmake_progress_start /Users/jwalton/cmake-3.15.4/CMakeFiles 0
make: Nothing to be done for `preinstall'.
Install the project...
bin/cmake -P cmake_install.cmake
-- Install configuration: ""
CMake Error at Source/kwsys/cmake_install.cmake:36 (file):
file cannot create directory: /usr/doc/cmake-3.15/cmsys. Maybe need
Call Stack (most recent call first):
make: *** [install] Error 1