Giter VIP home page Giter VIP logo

Comments (7)

volkanunsal avatar volkanunsal commented on July 22, 2024

Does anyone have an answer for this?

from curb.

phiggins avatar phiggins commented on July 22, 2024

@tenaciousflea: I installed curb on a Windows XP machine a few weeks ago, and when I had to do it on a second machine I decided to document my steps in case I had to do it a third time. You can see how I did it over here on my blog.

from curb.

volkanunsal avatar volkanunsal commented on July 22, 2024

The thing is I couldn't find libcurl for mingw32 anywhere. The download page is so complicated for that project, it's hopeless. In the end, I decided to use http://github.com/archiloque/rest-client

from curb.

taf2 avatar taf2 commented on July 22, 2024

Yeah, really anytime you need to compile source on windows... it's not going to be an easy task... I've thought about setting up a mingw32 build environment and cross compiling binary win32 releases of curb, but don't have a need for it, since I don't use windows... if anyone else is interested in supporting it this would be a different story of course...

from curb.

ghazel avatar ghazel commented on July 22, 2024

I've had curb working with Windows for some time. To pass extconf args to gem, you need an extra pair of dashes. I used the "Win32 - Generic" package, specifically "Win32 2000/XP 7.21.3 libcurl SSL Günter Knauf 3.02 MB", http://www.gknw.net/mirror/curl/win32/curl-7.21.3-devel-mingw32.zip

gem install curb -- --with-curl-include=c:\Users\Greg\projects\curl-7.21.3-devel-mingw32\include --with-curl-lib=c:\Users\Greg\projects\curl-7.21.3-devel-mingw32\bin

A few notes:

  • curb tends to have some C99 parts, so using MSVC won't work, you have to use DevKit/mingw (sadly)
  • yes, point with-curl-lib at \bin not \lib. I believe this is some DevKit oddity.
  • DevKit (sadly) does not support spaces in paths, so the include and lib dirs can't have them
  • There are probably some directories you could copy (!) the libcurl lib and include files to so that they're picked up automatically, but I don't recommend it

from curb.

volkanunsal avatar volkanunsal commented on July 22, 2024

thanks

from curb.

abdufarag avatar abdufarag commented on July 22, 2024

I have tried every thing but still cant install curb on Windows 10
C:>gem install curb -- --with-curl-lib="C:/curl-7.27.0-devel-mingw32/bin" --with-curl-include="C:/curl-7.27.0-devel-mingw32/include"
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-curl-lib=C:/curl-7.27.0-devel-mingw32/bin --with-curl-include=C:/curl-7.27.0-devel-mingw32/include'
This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.

C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20170418-13264-4p5aww.rb extconf.rb --with-curl-lib=C:/curl-7.27.0-devel-mingw32/bin --with-curl-include=C:/curl-7.27.0-devel-mingw32/include

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:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-curl-dir
--without-curl-dir
--with-curl-include=${curl-dir}/include
--with-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:18:in `

': 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.

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/curb-0.9.3 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/curb-0.9.3/gem_make.out

from curb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.