1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
C:\Users\nyash\Desktop\win32-sound>gem install win32-sound
Building native extensions.  This could take a while...
ERROR:  Error installing win32-sound:
        ERROR: Failed to build gem native extension.

"C:/Program Files/Ruby/bin/ruby.exe" extconf.rb
checking for strncpy_s()... *** 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:/Program Files/Ruby/bin/ruby
C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier faile
d to generate an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:419:in `try_link'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:527:in `try_func'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:772:in `block in have_
func'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:668:in `block in check
ing_for'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 level
s) in postpone'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:248:in `open'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:274:in `block in postp
one'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:248:in `open'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
        from C:/Program Files/Ruby/lib/ruby/1.9.1/mkmf.rb:771:in `have_func'
        from extconf.rb:9:in `<main>'


Gem files will remain installed in C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gem
s/win32-api-1.4.5 for inspection.
Results logged to C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gems/win32-api-1.4.5
/ext/gem_make.out

C:\Users\nyash\Desktop\win32-sound>