Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typhoeus Windows installation

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.

like image 546
cubesnyc Avatar asked Feb 13 '23 11:02

cubesnyc


1 Answers

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.

like image 192
cubesnyc Avatar answered Feb 16 '23 04:02

cubesnyc