Closed lumean closed 3 years ago
I also tried installing the gem debase-ruby_core_source first, but this did not help either.
@lumean please provide output of ruby -v
D:\>ruby -v
ruby 2.2.5p319 (2016-04-26 revision 54774) [i386-mingw32]
is there anything I can try on my side to further debug the issue? I have managed to manually create the make file and compile it on my machine, so in general the devkit installation should be fine. Note the error I get when I try to manually create the makefile without -rdevkit
is quite similar to the one I get above during gem install
D:\Anwendungen\ruby\ruby225-p319\lib\ruby\gems\2.2.0\gems\debase-0.2.1\ext>ruby extconf.rb
checking for vm_core.h... D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:587:in `try_cpp'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:1060:in `block in have_header'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:347:in `postpone'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/2.2.0/mkmf.rb:1059:in `have_header'
from extconf.rb:31:in `block in <main>'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/gems/2.2.0/gems/debase-ruby_core_source-0.9.6/lib/debase/ruby_core_source.rb:15:in `call'
from D:/Anwendungen/ruby/ruby225-p319/lib/ruby/gems/2.2.0/gems/debase-ruby_core_source-0.9.6/lib/debase/ruby_core_source.rb:15:in `create_makefile_with_core'
from extconf.rb:47:in `<main>'
D:\Anwendungen\ruby\ruby225-p319\lib\ruby\gems\2.2.0\gems\debase-0.2.1\ext>ruby -rdevkit extconf.rb
Temporarily enhancing PATH to include DevKit...
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
D:\Anwendungen\ruby\ruby225-p319\lib\ruby\gems\2.2.0\gems\debase-0.2.1\ext>"..\..\..\..\..\..\..\..\devkit-2.0.0+\devkitvars.bat"
Adding the DevKit to PATH...
D:\Anwendungen\ruby\ruby225-p319\lib\ruby\gems\2.2.0\gems\debase-0.2.1\ext>make
linking shared-object debase_internals.so
Maybe there is an issue with the environment variables. It seems like there's a chained invocation of ruby and the second time devkit is not anymore added to the path.
I'm using uru to manage different ruby versions and ruby is not by default installed to my PATH. But on the other hand many other native gem extensions (like json, nokogiri, etc) install just fine with the same setup.
We can close this issue. After adding ruby and devkit to the path the gem install works fine. Going to open a ticket for uru to address the environment variable issue.
That's not true for me lumean, even doing what you said, debase can't get installed.
Yes, works fine here too with both msys2 and msvc++.
Hi, I tried to install on windows 10 with ruby 2.2.5 and devkit, but it fails building native extension, do you have any suggestions? (I already tried the beta with --pre but get the same error)
Contents of mkmf.log: