[Rubygems-developers] About rake on MinGW w/ ruby-libvirt

Atsushi SAKAI sakaia at jp.fujitsu.com
Thu Jun 19 03:36:54 EDT 2008


Hi, 

I am trying to make ruby bindings for libvirt on MinGW.
But it failed on 
# rake build
The command "rake build" itself succeeds on Linux(fedora 6) but failed on MinGW.

If you know the idea to solve this,
Please suggest me.

==Environment==
MinGW-5.1.4.exe
(for more detail see: https://www.redhat.com/archives/libvir-list/2008-June/msg00201.html)
ruby(1.8.4), rubygems(1.1.0), rake(0.8.1) seems installed successfully.

==Error==
if i try to "rake build" for ruby-libvirt(http://libvirt.org/ruby/).
It fails like follows.
The message says "mkmf.log" should be checked.
But it does not generated yet.

===============error message================
$ rake build --trace
(in C:/msys/1.0/home/Administrator/work/ruby-libvirt)
** Invoke build (first_time)
** Invoke ext/libvirt/_libvirt.so (first_time)
** Invoke ext/libvirt/Makefile (first_time)
** Invoke ext/libvirt/extconf.rb (first_time, not_needed)
** Execute ext/libvirt/Makefile
ruby extconf.rb
*** 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
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/msys/1.0/local/bin/ruby
        --with-_libvirt-dir
        --without-_libvirt-dir
        --with-_libvirt-include
        --without-_libvirt-include=${_libvirt-dir}/include
        --with-_libvirt-lib
        --without-_libvirt-lib=${_libvirt-dir}/lib
        --with-pkg-config
        --without-pkg-config
rake aborted!
Command failed with status (1): [ruby extconf.rb...]
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:899:in `sh'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:906:in `sh'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:985:in `sh'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:980:in `sh'
C:/msys/1.0/home/Administrator/work/ruby-libvirt/rakefile:43
C:/msys/1.0/home/Administrator/work/ruby-libvirt/rakefile:42
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `execute'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
C:/msys/1.0/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain'
C:/msys/1.0/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain'
C:/msys/1.0/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
C:/msys/1.0/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
C:/msys/1.0/local/bin/rake:19
========================================

Thanks
Atsushi SAKAI






More information about the Rubygems-developers mailing list