Install Ruby Curb Gem in Windows Xp

Install Ruby Curb gem in windows XP

As I commented already, I did find a solution which was simply using the rest-client provided in the github gems..
gem install rest-client
will get the job done.
From there you can do a multipart post which can contain 1 or more files.. It has all the flexibility one could need in a rest-client.
See the documentation here: http://rdoc.info/projects/archiloque/rest-client
for examples on how to use it.

The only thing I found that it didn't do correctly was parsing cookies. The cookies my company uses can have equal signs in the values and it doesn't parse them correctly. I had put in some hacks to get around the issue but eventually that came back to bite me.. So just the other day I started analyzing the code from Mechanize/WEBrick and was able to utilize the CookieJar from Mechanize to manage cookies from the rest-client.. Hopefully I can get the author of the rest-client to build this functionality into the rest-client so others won't have the same problems I had..

how do i get curb to install on windows?

Windows

Installing a gem which doesn't have "native extensions" is more about the gem & its dependencies, and less about Windows.

You mention you've "put the .dll files in the Windows folder" - this won't solve the problem, as it still doesn't give the gem that which it needs -- library / "header" files. Like the mysql2 or imagemagick gems, you need to have a version of the "software" installed on your system, which the gem will then be able to reference upon installation

Although I have installed the curb gem on Windows 7 before, a recent system upgrade removed it (thus leaving me without any first-hand references for you). However, I can tell you it is possible if you use a tutorial like this

--

libCURL

The bottom line is you need to install & reference the libCURL library on your PC before attempting to install the gem. This is the trickiest part - you need to find the version of libCURL which has all the correct files, etc for you

You need the MingW32 Binary version of libCURL (curl-7.xx.0-devel-mingw32)

When you download & unzip the binary file, you should have the /include and /bin directories with the library (that's how you know if you have the right version):

Sample Image

Once you have this, unzip it to a folder on your system:

Sample Image

--

Gem

This will give you the ability to reference the library files it contains when installing your gem:

gem install curb --version 0.7.18 --platform=ruby -- -- --with-curl-lib="C:/path/to/your/curl-7.xx.0-devel-mingw32/bin" --with-curl-include="C:/path/to/your/curl-7.xx.0-devel-mingw32/include"

Setting up Curb in windows

Ben,

Not sure if you're still looking to use Feedzirra, but to get it to work on my machine (Windows 7), I had to copy both libcurl.dll and libidn-11.dll into the Ruby bin directory. After that it worked with no problem.

Setting up Curb in windows

Ben,

Not sure if you're still looking to use Feedzirra, but to get it to work on my machine (Windows 7), I had to copy both libcurl.dll and libidn-11.dll into the Ruby bin directory. After that it worked with no problem.

Installing curb on ruby1.8.6

The same answer I provided here applies to your issue:

https://stackoverflow.com/a/11484346/117298

But I highly recommend you upgrade at least to Ruby 1.8.7, considering 1.8.6 is no longer maintained and 1.8.7 End-Of-Life has been announced already.

Failed to install Ruby gem curb on windows 8

You should have curl library installed on you machine in root directory then try following command in command prompt

gem install curb -v 0.8.6 --platform=ruby -- --with-curl-lib=C:/curl-7.34.0-devel-mingw32/bin --with-curl-include=C:/curl-7.34.0-devel-mingw32/include

Error installing Curl, Curb Gem?

On Ubuntu, I had to run:

sudo apt-get install build-essential libcurl4-openssl-dev

Try installing those libraries and their dependencies.



Related Topics



Leave a reply



Submit