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

could not load: (libcrypto-1_1-x64|libeay64).dll #19099

Closed
Yihsiwei opened this issue Nov 4, 2021 · 9 comments
Closed

could not load: (libcrypto-1_1-x64|libeay64).dll #19099

Yihsiwei opened this issue Nov 4, 2021 · 9 comments

Comments

@Yihsiwei
Copy link

Yihsiwei commented Nov 4, 2021

Code:

import std/httpclient
var client = newHttpClient()
var url = "https://google.com"

echo client.getContent(url)

Compiled with nim c -d:ssl -d:release test.nim

image
image

@ghost
Copy link

ghost commented Nov 4, 2021

Please don't fill your issue with useless text, and about the error - if you compile with -d:ssl you need to ship your Windows binary with the OpenSSL DLLs and the root certificate chain that you can find in your Nim's binary folder or in https://nim-lang.org/download/dlls.zip, specifically cacert.pem, libcrypto-1_1-x64.dll, libssl-1_1-x64.dll

@dom96
Copy link
Contributor

dom96 commented Nov 4, 2021

you can use @treeform's puppy library if you want to avoid needing the openssl dlls: https://github.com/treeform/puppy

@Yihsiwei
Copy link
Author

Yihsiwei commented Nov 5, 2021

you can use @treeform's puppy library if you want to avoid needing the openssl dlls: https://github.com/treeform/puppy

Yes, I used him。but Some machines have such problems
da773ec41e80eb8257e89bf0a90ad2a

@dom96
Copy link
Contributor

dom96 commented Nov 5, 2021

Report this in puppy's repo if you haven't already.

@ghost
Copy link

ghost commented Nov 5, 2021

@Yihsiwei can we close this issue? Did my remark about the openssl DLLs help you?

@Yihsiwei
Copy link
Author

Yihsiwei commented Nov 5, 2021

@Yihsiwei can we close this issue? Did my remark about the openssl DLLs help you?

Very helpful. Thank you very much

@ghost
Copy link

ghost commented Nov 5, 2021

Sure, no problem, then I'm closing this issue :)

@ghost ghost closed this as completed Nov 5, 2021
@kkhackerx
Copy link

Please don't fill your issue with useless text, and about the error - if you compile with -d:ssl you need to ship your Windows binary with the OpenSSL DLLs and the root certificate chain that you can find in your Nim's binary folder or in https://nim-lang.org/download/dlls.zip, specifically cacert.pem, libcrypto-1_1-x64.dll, libssl-1_1-x64.dll

I want to open this exe on a another computer without nim, what can i do?

@NullCode1337
Copy link

you need to static link openssl to the executable
however I've been trying to do that for the past YEAR with no luck :(

This issue was closed.
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

4 participants