Problem installing LibCurl + LibXML + FeedZirra on Windows XP

I'm rail newbie. I am working on Windows XP.

I have this version of ruby.

ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] 

I have Rails 2.3.8 installed.

I am trying to install feedzirra, trying in every possible way after watching Rails Cast 168.

At first I tried to install using gem install pauldix-feedzirra. I got this error.

  C:\Ruby>gem install pauldix-feedzirra Building native extensions. This could take a while... ERROR: Error installing pauldix-feedzirra: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for curl-config... no checking for main() in -lcurl... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby/bin/ruby --with-curl-dir --without-curl-dir --with-curl-include --without-curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib extconf.rb:12: Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/taf2-curb-0.5. 4.0 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/ext/gem_make. out 

Next I tried gem install curb. I found this on the PaulDix FeedZirra page , where he suggested that Todd Fisher work on a Ruby libcurl binding called curb

Now i get this error

 C:\Ruby>gem install curb Building native extensions. This could take a while... ERROR: Error installing curb: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb "-g -O2 -DFD_SETSIZE=256 $(cflags)" checking for curl-config... no checking for main() in -lcurl... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby/bin/ruby --with-curl-dir --without-curl-dir --with-curl-include --without-curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib extconf.rb:19: Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.7.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.7.8/ext/gem_make.out 

When the error says this because it cannot find libcurl or curl / curl.h, then I did some search queries and I found a link to the Download Wizard . The best option for beginner rails is curl executable (as suggested on various forums and articles). I have done it. Extracted file. Installed exe file. Now I thought the libcurl problem was resolved. But??

Ok, now to install feedzirra I also need to install libxml. So, with a little googling, I ended up here in Libxml ruby ​​forge , downloaded the pearl libxml-ruby-1.1.3 and put it in C: \ Ruby \ bin.

Now, thinking that everything is set up, I am ready to go to study the parsing, I enter the gem install pauldix-feedzirra. I get the same error "I can not find libcurl or curl / curl.h" and the same old list as before.

Over the past 3 days, I'm just trying to fix this. Bad luck!

Can someone help me fix this? Main stages. Please think that I do not know how to manage windows. Please go to this basic level when you talk about troubleshooting terminology and help me solve this problem.

Awaiting your help and support to a large extent.

Thanks in advance.

0
source share
2 answers

Curb installed

Follow the directions of rubyinstaller and sakaiproject

You can install curb as soon as possible!

+2
source

yes, curb it, it will be installed as soon as possible. but not taf2-curb. and taf2-curb - this is for feedzirra. Look at my fight with taf2-curb, it will not compile on Windows for a reason.
BTW, I switched to feedtosis, had some active support problems with feedzirra on the edge, did not have time to solve it.

0
source

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


All Articles