curb
curb copied to clipboard
A way to build Curb on Windows(MinGW)
This is not a issue but a tutorial:
- Build cURL with all the features you need or download a binary.
- 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.
https://curl.haxx.se/download.html
gem install curb --platform=ruby -- --with-curl-dir=c:\tools\curl-7.60.0-win64-mingw
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.