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

Cannot create directory C:/Program Files (x86)/Common Files/SSL: No such file or directory #6072

Closed
kohldampfer opened this issue Apr 24, 2018 · 5 comments

Comments

@kohldampfer
Copy link

kohldampfer commented Apr 24, 2018

I am building OpenSSL on a Windows machine. When I run the configure script, I am doing it like this:

path\to\perl.exe Configure VC-WIN32 enable-static-engine no-zlib --prefix="D:\target\dir"

After invoking nmake install VERBOSE=1, OpenSSL compiles and links and afterwards, I get at some point this error message and the build stops:

Cannot create directory C:/Program Files (x86)/Common Files/SSL: No such file or directory

It's OK that the build stops at this point. In my opinion, when I use the --prefix option, then the install part should not install / copy some files into another directory than I set through the --prefix option. So, for me, this is a bug.

What do you think about this?

Edit:
I compile OpenSSL version 1.1.0h.

@kohldampfer
Copy link
Author

Possible workaround is to add the parameter --openssldir="D:\target\dir\SSL" when calling the perl.exe command.

@levitte
Copy link
Member

levitte commented Apr 25, 2018

Yes. Since 1.1.0, --openssldir no longer depends on --prefix.

@levitte levitte closed this as completed Apr 25, 2018
@al1970
Copy link

al1970 commented Sep 1, 2020

There's another solution:
start the 'mingw64.exe' or the 'cmd.exe' (depending on the build toolchain) with administration privileges.
The problem in directory creation is due to lack of administration right.

@liku-amare
Copy link

liku-amare commented Dec 5, 2020

I got the same error doing the same in VS2019. I ran Developer cmd for VS2019 with administrative privilege and it worked fine.

@AntonDueck
Copy link

only admin can write to C:/Program Files (x86)/Common Files/SSL. so you habe to define the --openssldir or have the acces rights

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

5 participants