Skip to content

Add Windows curl DLL names#271

Open
Watson1978 wants to merge 2 commits intotyphoeus:masterfrom
Watson1978:windows
Open

Add Windows curl DLL names#271
Watson1978 wants to merge 2 commits intotyphoeus:masterfrom
Watson1978:windows

Conversation

@Watson1978
Copy link
Copy Markdown

Fixes #270

This PR resolves the LoadError on Windows by adding the missing DLL names to ffi_lib.

Currently, ethon only looks for libcurl and libcurl.so.4.
However, on modern Windows environments, the curl DLL is named differently depending on how it was installed:

  1. MSYS2 (RubyInstaller default):
    • Installing via pacman -S mingw-w64-ucrt-x86_64-curl provides libcurl-4.dll.
  2. Official curl for Windows:
    • Downloading the official binaries from curl.se provides architecture-specific names like libcurl-x64.dll and libcurl-arm64.dll.

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

Successfully merging this pull request may close these issues.

Add libcurl-x64 and libcurl-arm64 to ffi_lib for Windows

1 participant