curb icon indicating copy to clipboard operation
curb copied to clipboard

A way to build Curb on Windows(MinGW)

Open quantum5 opened this issue 13 years ago • 2 comments

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.

quantum5 avatar Apr 24 '11 03:04 quantum5

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

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

7dir avatar Jun 11 '18 15:06 7dir

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.

luke-hill avatar Apr 18 '19 16:04 luke-hill