'libcurl.so.4.dll': неверный параметр.Rails + LibCurl в Windows - PullRequest
0 голосов
/ 20 февраля 2019

У меня установлена ​​Ruby 2.6.0 x64 с использованием rubyinstaller в Windows 10.

Кажется, что Bundler работает нормально, но я не могу использовать rake задачи или rails действияв том числе rails s.Отслеживаемая ошибка приведена ниже:

F:\Projects\ruby\myproject>rails db:migrate --trace
rails aborted!
LoadError: Could not open library 'libcurl': The parameter is incorrect.
.
Could not open library 'libcurl.dll': The parameter is incorrect.
.
Could not open library 'libcurl.so.4': The parameter is incorrect.
.
Could not open library 'libcurl.so.4.dll': The parameter is incorrect.
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ffi-1.9.15/lib/ffi/library.rb:147:in `block in ffi_lib'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ffi-1.9.15/lib/ffi/library.rb:100:in `map'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ffi-1.9.15/lib/ffi/library.rb:100:in `ffi_lib'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/settings.rb:7:in `<module:Curl>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/settings.rb:2:in `<module:Ethon>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/settings.rb:1:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curl.rb:27:in `<module:Curl>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curl.rb:13:in `<module:Ethon>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon/curl.rb:8:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:15:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/typhoeus-1.3.1/lib/typhoeus.rb:2:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `each'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `block in require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `each'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `require'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/lib/bundler.rb:114:in `require'
F:/Projects/ruby/myproject/config/application.rb:21:in `<top (required)>'
F:/Projects/ruby/myproject/Rakefile:4:in `require_relative'
F:/Projects/ruby/myproject/Rakefile:4:in `<top (required)>'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/rake_module.rb:29:in `load'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/rake_module.rb:29:in `load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:703:in `raw_load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:104:in `block in load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:103:in `load_rakefile'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/commands/rake/rake_command.rb:20:in `perform'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/command.rb:48:in `invoke'
F:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'

Я думал, что это то же самое, что и Известный указанный модуль libcurl.dll не может быть найден ошибка в Windows, но этоникто не сообщает, что он отсутствует или что-то еще, и, кажется, не реагирует ни на одну из libcurl.dll копий (libcurl-x64.dll), недавно помещенных в F:\Ruby26-x64\bin, или перезапускает: (

Какой параметр неверен икак мне это исправить?

...