digitalmars.D.learn - curl error msg
- MichaelBi (5/5) Feb 19 2022 when running the example in the std.net.curl on my windows, got
- frame (13/18) Feb 20 2022 A libcurl.dll comes with the installer. It can be found by your
- Anonymouse (4/9) Feb 20 2022 Are you running it from a WSL session? I get libcurl.dll errors
when running the example in the std.net.curl on my windows, got following msg: std.net.curl.CurlException std\net\curl.d(4239): Failed to load curl, tried "libcurl.dll", "curl.dll" does it mean i don't have those dll files? thx.
Feb 19 2022
On Saturday, 19 February 2022 at 13:12:32 UTC, MichaelBi wrote:when running the example in the std.net.curl on my windows, got following msg: std.net.curl.CurlException std\net\curl.d(4239): Failed to load curl, tried "libcurl.dll", "curl.dll" does it mean i don't have those dll files? thx.A libcurl.dll comes with the installer. It can be found by your program if it's located in the same folder as the executable or if the %PATH% environment variable contains the directory where the installer puts the DLL in. You may find this path in the environment variable but it has to match 32/64bit. If your 64bit program tries to load the 32bit variant it will fail to load. It's likely that your %PATH% environment variable contains the 32bit path (eg. for DMD `C:\install-dir\dmd2\windows\bin` but not the path to `\bin64`. So you have to adjust the environment variable or copy the DLL from this path to your program executable.
Feb 20 2022
On Saturday, 19 February 2022 at 13:12:32 UTC, MichaelBi wrote:when running the example in the std.net.curl on my windows, got following msg: std.net.curl.CurlException std\net\curl.d(4239): Failed to load curl, tried "libcurl.dll", "curl.dll" does it mean i don't have those dll files? thx.Are you running it from a WSL session? I get libcurl.dll errors (although a graphical popup) when I run my thing from in there, but it works well from a normal command console and/or Powershell.
Feb 20 2022