# Problem compiling c extension with ruby-1.9.1 on windows

**URL:** <https://www.ruby-forum.com/t/problem-compiling-c-extension-with-ruby-1-9-1-on-windows/163342>\
**Category:** Ruby\
**Created:** [March 19, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/problem-compiling-c-extension-with-ruby-1-9-1-on-windows/163342 "2009-03-19T13:20:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@praveen](https://www.ruby-forum.com/u/praveen)\
**Post date:** [March 19, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/problem-compiling-c-extension-with-ruby-1-9-1-on-windows/163342/1 "2009-03-19T13:20:51Z")

</div>

Hi,

I am trying to compile a ruby-c extension with ruby1.9.1 (binaries  
downloaded from [ruby-lang.org](http://ruby-lang.org)) on windows using VS 2008. when I run  
ruby extconf.rb I get an error as below.

c:/ruby191/lib/ruby/1.9.1/mkmf.rb:363:in `try_do': The complier failed to genera te an executable file. (RuntimeError) You have to install development tools first. from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:416:in `try\_link0’  
from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:420:in `try_link' from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:528:in `try\_func’  
from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:724:in `block in have_library' from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:669:in `block in  
checking\_for’  
from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postp one' from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in `open’  
from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone' from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in `open’  
from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:270:in `postpone' from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:668:in `checking\_for’  
from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:719:in `have_library' from extconf.rb:26:in `’

What development tools is it expecting? how will I be able to install  
the same?

Any help is highly appreciated.

Thanks

Praveen

---

<div class="post-metadata">

**Author:** ![praveen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@praveen](https://www.ruby-forum.com/u/praveen)\
**Post date:** [March 19, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/problem-compiling-c-extension-with-ruby-1-9-1-on-windows/163342/2 "2009-03-19T14:47:02Z")

</div>

Hi,  
2009/3/19 Praveen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Â Â Â Â from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:416:in `try_link0' Â Â Â Â from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block in  
> Any help is highly appreciated.

The binary downloaded from ruby-lang is compiled using VS 6.0.  
And it is not compatible with VS 2008.  
You should install VS 6.0.

Regards,

Park H.

---

<div class="post-metadata">

**Author:** ![praveen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ec8ea/32.png) [@praveen](https://www.ruby-forum.com/u/praveen)\
**Post date:** [March 19, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/problem-compiling-c-extension-with-ruby-1-9-1-on-windows/163342/3 "2009-03-19T15:35:54Z")

</div>

On Mar 19, 6:43 pm, Heesob P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > to genera  
> > levels) in postp  
> > What development tools is it expecting? how will I be able to install  
> > Park H.  
> > Hi Park,

Thanks. Will try with the other version.

Regards

Praveen
