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

A way to build Curb on Windows(MinGW) #75

Open
quantum5 opened this issue Apr 24, 2011 · 2 comments
Open

A way to build Curb on Windows(MinGW) #75

quantum5 opened this issue Apr 24, 2011 · 2 comments

Comments

@quantum5
Copy link

This is not a issue but a tutorial:

  1. Build cURL with all the features you need or download a binary.
  2. Execute gem i curb -- --with-curl-lib=/bin --with-curl-include=/include

Note that you use bin instead of lib because the symbol in lib is different and the build system won't handle it. MinGW supports link directly with a shared lib.

@7dir
Copy link

7dir commented Jun 11, 2018

https://curl.haxx.se/download.html

gem install curb --platform=ruby -- --with-curl-dir=c:\tools\curl-7.60.0-win64-mingw

@luke-hill
Copy link
Contributor

A few tweaks have been added by myself to the README recently to get windows users building easier.

Key takeaways

  • Ruby 2.3.3 is the last version which works "nicely", any 2.4 version is likely to struggle.
  • Make sure to have forward slashes and run everything from C: directory install.
  • Check your PATH variables.

If anyone reading has got this gem working on a Ruby 2.4 on Windows please share what you did so we can get it in the README.

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

3 participants