Ruby on Rails: runs Typhoeus on Windows 7 (64 bit)

I can't get Typhoeus gem to work on my windows 7 machine.

Basically, the file "native.so" was not found in "C: /Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/ext/typhoeus/". How to fix it?

C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/lib/typhoeus.rb:10:in `require': 126: The specified module could not be found. - C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/ext/typhoeus/native.so (LoadError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/lib/typhoeus.rb:10:in `<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:68:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:66:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:66:in `block in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:55:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:55:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler.rb:120:in`require' 
+4
source share
3 answers

The problem is that typhoeus needs to be twisted as a development library to successfully compile the native.so extension.

First you need to install RubyInstaller DevKit from the download page . Secondly, you will need to get the headers and development libraries for MinGW, which you will find on our mailing list:

http://groups.google.com/group/rubyinstaller/browse_thread/thread/c8a4bdb6663cbf7c

To the record, the same message mentions how he tried unsuccessfully to try to get the pearl to work in Windows, and he completed the transition to curbing.

PS: while others may say that * .so is a UNIX / POSIX convention for shared objects, it is an extension that Ruby decided to use for Windows C-Extensions, for example, Python uses *.pyd for its extensions.

+1
source

What worked for me (Win7 x64) was to download the DLL from a link called Download libcurl.dll (all versions) only , found here: http://www.paehl.com/open_source/?CURL_7.35.0 .

After extracting, I took the .dll file from the NoSSL/SSL directory (it looks like I was working, I used SSL to be sure). I copied the file to the Ruby / bin directory and Typhoeus worked.

Note. You cannot use the x64 version of .dll because Ruby is 32-bit. Typhoid did not respond to the x64 file.

Hope this helps someone.

+3
source

if this stone is looking for native.so , then it may not work with windows, *.so is equivalent to * NIX for *.dll for Windows, and the file is "shared object" or "dynamic linked library". So it can really be needed by native.dll , or be a stone built on platform- native.dll code. Look at their documentation, this is just a shot in the dark.

it again says that something happened in native.so (LoadError), so perhaps its start is complete, idk

0
source

All Articles