Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

osx cmake install can't create man folder #209

Closed
AskAlexSharov opened this issue Jun 17, 2021 · 3 comments
Closed

osx cmake install can't create man folder #209

AskAlexSharov opened this issue Jun 17, 2021 · 3 comments
Assignees

Comments

@AskAlexSharov
Copy link
Contributor

AskAlexSharov commented Jun 17, 2021

after git pull

mkdir build
cd build
cmake ..
make install


-- Install configuration: "Release"
-- Installing: /usr/local/lib/libmdbx.dylib
-- Installing: /usr/local/include/mdbx.h
-- Installing: /usr/local/include/mdbx.h++
-- Installing: /usr/local/bin/mdbx_chk
-- Installing: /usr/local/bin/mdbx_stat
-- Installing: /usr/local/bin/mdbx_copy
-- Installing: /usr/local/bin/mdbx_dump
-- Installing: /usr/local/bin/mdbx_load
-- Installing: /usr/local/bin/mdbx_drop
CMake Error at cmake_install.cmake:121 (file):
  file cannot create directory: /usr/local/man/man1.  Maybe need
  administrative privileges.

I'm not sure, but I see ls /usr/share/man/man1 folder on OSX (/usr/share instead of /usr/local)

@erthink
Copy link
Owner

erthink commented Jun 17, 2021

Basically it is default CMake behavior (depending of CMAKE_INSTALL_PREFIX), but I will try to use GNUInstallDirs on non-Windows platforms.

@erthink
Copy link
Owner

erthink commented Jun 17, 2021

@AskAlexSharov, I've minimally fixed some things.
Please check if this fixed the problem in your case.

However, I do not intend to fix anything more in this way, even if the problem still exists.
Because this means that there a some problem is in CMake (in the GNUInstallDirs module), and/or the -D command-line option should be used to explicitly define a corresponding variables responsible for an install directories.

@AskAlexSharov
Copy link
Contributor Author

It's fine to leave it as "wont fix" if workaround described here.
Tested - works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants