Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had a similar problem on Windows 7, and the issue was some of the logic in the extconf.rb file for windows machines. The following lines are what cause the <code>need libcurl</code> error message:</p> <pre><code>if Config::CONFIG['target_os'] == 'mingw32' header = File.join(ROOT, 'cross', 'curl-7.19.4.win32', 'include') unless find_header('curl/curl.h', header) abort "need libcurl" end </code></pre> <p>The <code>File.join</code> call causes the makefile to look for a directory (cross/curl-7.19.4.win32/include) that is not included with typhoeus, and therefore the makefile won't work.</p> <p>I looked at a lot of the solutions on the web for most of a day (<a href="https://github.com/dbalatero/typhoeus/issues/11#issuecomment-309957" rel="nofollow" title="this">this link</a> helped the most), and in the end found a workaround by simply changing the <code>File.join()</code> to use the explicit file path for my curl gem. I edited the extconf.rb file twice, once here:</p> <pre><code>if Config::CONFIG['target_os'] == 'mingw32' header = File.join('C:\RailsInstaller\Ruby1.9.2\lib\ruby\gems\1.9.1\gems\curl-7.19.4-devel-mingw32', 'include') unless find_header('curl/curl.h', header) abort "need libcurl" end </code></pre> <p>And once here:</p> <pre><code>if Config::CONFIG['target_os'] == 'mingw32' find_library('curl', 'curl_easy_init', File.join('C:\RailsInstaller\Ruby1.9.2\lib\ruby\gems\1.9.1\gems\curl-7.19.4-devel-mingw32', 'bin')) </code></pre> <p>I believe you may need the <a href="http://rubyinstaller.org/add-ons/devkit/" rel="nofollow">DevKit</a> installed, but I'm not sure.</p> <p>Hope this helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload