Question

Tried installing Typhoeus on a Windows 7 environment. Gem installs successfully but when trying to run a simple ruby script:: require 'typhoeus'

Typhoeus.get("www.google.com", verbose: true)

I get the following error:: D:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.9.3-x86-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open l (LoadError)url': The specified module could not be found. . Could not open library 'libcurl.dll': The specified module could not be found. . Could not open library 'libcurl.so.4': The specified module could not be found.

I tried adding curl.exe and libcurl.dll that I found in one of the packages on the curl website but that didn't help. Not sure what to do at this point. Thnks.

Was it helpful?

Solution

Seem to have figured it out. If anyone is having the same issue, make sure to download the following package from curl.haxx.se/download.html

Win32 2000/XP zip 7.34.0 libcurl SSL Günter Knauf 3.34 MB

Extract the bin directory to wherever and make sure to add it to your PATH. I also added .DLL to PATHEXT reset comp and it worked.

OTHER TIPS

I just had the same problem on Windows 7 x64 and answered about it here. Typhoeus requires Ruby-FFI (see this answer) and libcurl.

The accepted answer is a little out of date now, but the same idea works:

(I did not add .DLL to the PATHEXT)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top