Setting curb in windows

I'm trying to use feedzirra with Rails 3 on Windows 7, but you had real problems installing Curl and Curb, I found this question to install Ruby Curb gem on Windows XP , which allowed me to install gem successfully, but now when I try to run my rails server, I get the following error

C:/Ruby193/lib/ruby/gems/1.9.1/gems/curb-0.8.1/lib/curb.rb:1:in `require': 193: %1 is not a valid Win32 application. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/curb-0.8.1/lib/curb_core.so (LoadError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/curb-0.8.1/lib/curb.rb:1:in `<top (required)>' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/feedzirra-0.0.24/lib/feedzirra.rb:4:in `require' ... 

curb_core.so exists, but windows don’t know how to open it, and they say that it is not a valid Win32 application. Any ideas how I can make this work? Or does anyone know of other good RSS readers for rails that don't use Curb?

thanks

+4
source share
2 answers

Ben

Not sure if you still want to use Feedzirra, but to make it work on my machine (Windows 7), I had to copy both libcurl.dll and libidn-11.dll to the Ruby bin . After that, he worked without problems.

+12
source

Try copying libcurl.dll from your curl installation to the ruby ​​/ bin directory. Solved the problem for me.

+2
source

Source: https://habr.com/ru/post/1441273/


All Articles