Bugs: Browse | Submit New | Admin

[#26905] Rake fails install on Windows/XP

Date:
2009-08-10 07:21
Priority:
3
Submitted By:
William Mason (william)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Rake fails install on Windows/XP

Detailed description
Greetings ...

I am finding it challenging to get the rake script to build on Windows.  I have put the windows libcurl from the curl
web site (http://curl.haxx.se/) in the ruby lib path as:

  C:\bin\ruby\v1.8\lib\curl\
     C:\bin\ruby\v1.8\lib\curl\include
     C:\bin\ruby\v1.8\lib\curl\lib

The down load however names the library: curllib.dll and curllib.lib (somewhat redundantly).  So I am now wondering
if that's the problem.

I followed the options suggested in the Readme file, as ...

   rake install --trace 
      "EXTCONF_OPTS='--with-curl-lib=c:/bin/ruby/v1.8/lib/curl/lib  
                     --with-curl-include=c:/bin/ruby/v1.8/lib/curl/include'"

I also used a few sensible looking variations - Alas with no success.  

The rake install keeps saying that it can't see the .H and .LIB files (see output below).

While this may be true, it isn't helpful to me.  I believe it would help if you provide a sample curlconf.rb file, or
even made use of the culrconf.rb for the install so people with other platforms can 'see' what needs doing.

Secondly, the readme seems to not give an accurate description of how to tell Rake where the files and folder go.  Or
we can benefit from better descriptions.

Cheers,
        Will


==============[ output ]================

C:...> rake install --trace "EXTCONF_OPTS='--with-curl-lib=c:/bin/ruby/v1.8/lib/curl/lib
--with-curl-include=c:/bin/ruby/v1.8/lib/curl/include'"
rbconfig.rb 
(in C:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/curb-0.4.8.0)
** Invoke install (first_time)
** Invoke alltests (first_time)
** Invoke unittests (first_time)
** Invoke compile (first_time)
** Invoke ext/curb_core.so (first_time)
** Invoke ext/Makefile (first_time)
** Invoke ext/extconf.rb (first_time, not_needed)
** Execute ext/Makefile
c:/bin/ruby/v1.8/bin/ruby.exe extconf.rb '--with-curl-lib=c:/bin/ruby/v1.8/lib/curl/lib
--with-curl-include=c:/bin/ruby/v1.8/lib/curl/include'
C:\WINDOWS\system32\cmd.exe /c "call "c:/bin/ruby/v1.8/bin/ruby.exe" extconf.rb
'--with-curl-lib=c:/bin/ruby/v1.8/lib/curl/lib  --with-curl-include=c:/bin/ruby/v1.8/lib/curl/include'".
rbconfig.rb :: 2009-Jul-19  #wm001


 * c:\bin\ruby\v1.8\lib\ruby\1.8 ... mkmf.rb

checking for curl-config... no
checking for main() in curl.lib... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/bin/ruby/v1.8/bin/ruby
        --with-curl-dir
        --without-curl-dir
        --with-curl-include
        --without-curl-include=${curl-dir}/include
        --with-curl-lib=${curl-dir}/lib
        --with-curllib
        --without-curllib
extconf.rb:9:   Can't find libcurl or curl/curl.h (RuntimeError)

  Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
  options to extconf.
rake aborted!

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-11-18 02:45
Sender: William Mason

Hi ...

I hat CURL_HOME and curl installed when I first submitted
the bug.  Naturally, it still doesn't work because cURL
works fine.  

Also I'm running windows, there's no syntax for $CURL_HOME.

In a light vein, this sounds like a windows-myopia thing. 
However one reason I like Python and Ruby is to escape the
narrow bands of system~ism.

Why not run the build script in Ruby or the current version
of Rake, when there is an older version installed?

:-)
Date: 2010-11-15 00:02
Sender: Riley Lynch

Try pointing curl-lib at the bin directory of the curl install,
where libcurl.dll is installed. This works for me (with CURL_HOME
set to the install directory):

  gem install curb -- --with-curl-dir=$CURL_HOME
--with-curl-lib=$CURL_HOME/bin
Date: 2009-10-02 21:40
Sender: matt Wolfe

did you ever figure out how to install curl on windows? I'm having
the same issue

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item