[CMake] CMake 3.15 fails to install on OS X
Eric Doenges
doenges at mvtec.com
Tue Oct 15 01:36:54 EDT 2019
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). See this Wikipedia article
<https://en.wikipedia.org/wiki/System_Integrity_Protection> for more
information on SIP.
Am 15.10.19 um 07:05 schrieb Jeffrey Walton:
> 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
> friends.
>
> I configured with:
>
> ./configure --prefix=/usr
>
> Configure appears OK. Make appears OK. Install is failing:
>
> $ sudo make install VERBOSE=1
> ...
> [100%] Built target foo
> /Users/jwalton/cmake-3.15.4/Bootstrap.cmk/cmake -E
> cmake_progress_start /Users/jwalton/cmake-3.15.4/CMakeFiles 0
> /Library/Developer/CommandLineTools/usr/bin/make -f
> CMakeFiles/Makefile2 preinstall
> make[1]: 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
> administrative privileges.
> Call Stack (most recent call first):
> cmake_install.cmake:37 (include)
>
> make: *** [install] Error 1
--
*Dr. Eric Dönges*
Senior Software Engineer
MVTec Software GmbH | Arnulfstr. 205 | 80634 Munich | Germany
doenges at mvtec.com <mailto:mustermann at mvtec.com> | Tel: +49 89 457 695-0
| www.mvtec.com <http://www.mvtec.com>
Find our privacy policy here <https://www.mvtec.com/imprint>.
Sign up <https://www.mvtec.com/newsletter> for our MVTec Newsletter!
Geschäftsführer: Dr. Wolfgang Eckstein, Dr. Olaf Munkelt
Amtsgericht München HRB 114695
MVTec Software GmbH Logo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191015/af28b4c9/attachment.html>
More information about the CMake
mailing list