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 open library 'libcurl' #720

Open
pablox70 opened this issue Feb 2, 2024 · 1 comment
Open

Could not open library 'libcurl' #720

pablox70 opened this issue Feb 2, 2024 · 1 comment

Comments

@pablox70
Copy link

pablox70 commented Feb 2, 2024

Running a Ruby 3.2.2 Cucumber project with openssl 3.1 and getting this error even though the libcurl and libcurl.so.4 files are there. I have libcurl.dll in the Ruby32x64/bin folder on Windows 10.
Did something change in the new versions?

Could not open library 'libcurl': Failed with error 126: The specified module could not be found.
.
Could not open library 'libcurl.dll': Failed with error 126: The specified module could not be found.
.
Could not open library 'libcurl.so.4': Failed with error 126: The specified module could not be found.
.
Could not open library 'libcurl.so.4.dll': Failed with error 126: The specified module could not be found.
.
Searched in , /usr/lib, /usr/local/lib, /opt/local/lib (LoadError)
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ffi-1.16.3-x64-mingw-ucrt/lib/ffi/dynamic_library.rb:65:in load_library' C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ffi-1.16.3-x64-mingw-ucrt/lib/ffi/library.rb:95:in block in ffi_lib'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ffi-1.16.3-x64-mingw-ucrt/lib/ffi/library.rb:94:in map' C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ffi-1.16.3-x64-mingw-ucrt/lib/ffi/library.rb:94:in ffi_lib'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/curls/settings.rb:10:in module:Curl' C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/curls/settings.rb:3:in module:Ethon'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/curls/settings.rb:2:in <top (required)>' internal:C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require'
internal:C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require' C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/curl.rb:28:in module:Curl'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/curl.rb:14:in module:Ethon' C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon/curl.rb:9:in <top (required)>'
internal:C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require' internal:C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ethon-0.16.0/lib/ethon.rb:16:in <top (required)>' internal:C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require'
internal:C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require' C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/typhoeus-1.4.1/lib/typhoeus.rb:2:in <top (required)>'

@pablox70
Copy link
Author

pablox70 commented Feb 2, 2024

I fixed this - you can close. I had to download the latest libcurl file from curl.se/windows and replace the libcurl.dll that is a part of Ruby 3.2.2 install.

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

1 participant