Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boost::filesystem::create_directory: File exists #210

Closed
computervisionlearner opened this issue Oct 18, 2021 · 1 comment
Closed

boost::filesystem::create_directory: File exists #210

computervisionlearner opened this issue Oct 18, 2021 · 1 comment

Comments

@computervisionlearner
Copy link

Hi, all:
I am using boost 1.75 version on centos system。In the docker image, I used the sample code located at libs/log/example/rotating_file/main.cpp and it reports the following error: FAILURE: boost::filesystem::create_directory: File exists: "/opt/boost/demo". However, I can execute the program correctly on the physical machine。My question is exactly the same as this statement (https://stackoverflow.com/questions/67256984/boostfilesystemexists-throws-operation-not-permitted-exception-on-centos-8-d), so I think this error is not a special case for me. Would you mind tell my how to solve this problem? Looking forward to your reply, Thank you ~~

@mclow mclow transferred this issue from boostorg/boost Oct 18, 2021
@Lastique
Copy link
Member

Looks like a duplicate of #182 and #173. I don't see a connection to the SO question - there, the issue is with permissions, which is different.

Try updating to the latest Boost release or configure the Docker so that it allows the syscalls supported by the host kernel.

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

No branches or pull requests

2 participants