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!
|