Issue #11866 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED

----------------------------------------
Bug #11866: (mingw32) Cannot install or update io-console
https://bugs.ruby-lang.org/issues/11866#change-56875

* Author: Martijn Saly
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED
----------------------------------------
`gem update` fails because it tries to update io-console, which cannot update (or install) itself.

Here's the full output:

~~~
 gem install io-console
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing io-console:
        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/io-console-0.4.4
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20151223-1500-1scn961.rb extconf.rb
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/io-console-0.4.4/mkmf.log

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/io-console-0.4.4
make "DESTDIR=" clean

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/io-console-0.4.4
make "DESTDIR="
generating console-x64-mingw32.def
compiling console.c
console.c:710:24: fatal error: win32_vk.inc: No such file or directory
compilation terminated.
make: *** [console.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/io-console-0.4.4 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/io-console-0.4.4/gem_make.out
~~~

The log file mentioned will be attached.

This is on Windows 10 x64, using the latest found RubyInstaller 2.2.3-x64. Gem is at version 2.5.1.

---Files--------------------------------
mkmf.log (1.63 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>