Problem compiling c extension with ruby-1.9.1 on windows

P

Praveen

Hi,

I am trying to compile a ruby-c extension with ruby1.9.1 (binaries
downloaded from 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 `<main>'

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

Any help is highly appreciated.

Thanks

Praveen
 
H

Heesob Park

Hi,
2009/3/19 Praveen said:
Hi,

I am trying to compile a ruby-c extension with ruby1.9.1 (binaries
downloaded from 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.
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:416:in = `try_link0'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:420:in = `try_link'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:528:in = `try_func'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:724:in = `block in
have_library'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:669:in = `block in
checking_for'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in = `block (2
levels) in postp
one'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in = `open'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in = `block in
postpone'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in = `open'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:270:in = `postpone'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:668:in = `checking_for'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from c:/ruby191/lib/ruby/1.9.1/mkmf.rb:719:in = `have_library'
=C2=A0 =C2=A0 =C2=A0 =C2=A0from extconf.rb:26:in `<main>'

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

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 Heesob
 
P

Praveen

Hi,






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 Heesob

Hi Park,

Thanks. Will try with the other version.

Regards

Praveen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top