# Problem installing Qt4 gem on Windows

**URL:** <https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920>\
**Category:** Ruby\
**Created:** [September 18, 2008, 11:47am UTC](https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920 "2008-09-18T11:47:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [September 18, 2008, 11:47am UTC](https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920/1 "2008-09-18T11:47:45Z")

</div>

Shouldn’t windows gems be precompiled?

D:\>gem install qtruby4-1.4.10-x86-mswin32.gem

Building native extensions. This could take a while…  
ERROR: Error installing qtruby4-1.4.10-x86-mswin32.gem:  
ERROR: Failed to build gem native extension.

d:/ruby/bin/ruby.exe extconf.rb install qtruby4-1.4.10-x86-mswin32.gem  
Executing install…  
creating Makefile

nmake  
The system cannot execute the specified program.

Gem files will remain installed in  
d:/ruby/lib/ruby/gems/1.8/gems/qtruby4-1.4.10  
-x86-mswin32 for inspection.  
Results logged to  
d:/ruby/lib/ruby/gems/1.8/gems/qtruby4-1.4.10-x86-mswin32/gem\_  
make.out

by  
TheR

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [September 18, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920/2 "2008-09-18T21:07:56Z")

</div>

Hi Damjan,

binaries are included in the Windows qt4 gem, but gem forces to use  
“nmake” even if nmake does nothing. Thats why nmake is included in this  
gem, but it is a 2008 version, so you need to install vcredist\_x86 (2008  
!!! version), if this does not work please try the 2005 SP1 Version of  
vcredist\_x86, and please let me know which version works with it

Best regards  
Jan

Damjan R. schrieb:

> Executing install…  
> d:/ruby/lib/ruby/gems/1.8/gems/qtruby4-1.4.10-x86-mswin32/gem\_  
> make.out
> 
> by  
> TheR

–  
Otto Software Partner GmbH

Jan P. (e-mail: removed\_email\_address@domain.invalid)

Tel. 0351/49723202, Fax: 0351/49723119  
01067 Dresden, Freiberger StraÃŸe 35 - AG Dresden, HRB 2475  
GeschÃ¤ftsfÃ¼hrer: Burkhard Arrenberg, Heinz A. Bade, Jens Gruhl

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [September 19, 2008, 8:50am UTC](https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920/3 "2008-09-19T08:50:23Z")

</div>

Jan P. wrote:

> Hi Damjan,
> 
> binaries are included in the Windows qt4 gem, but gem forces to use  
> “nmake” even if nmake does nothing. Thats why nmake is included in this  
> gem, but it is a 2008 version, so you need to install vcredist\_x86 (2008  
> !!! version), if this does not work please try the 2005 SP1 Version of  
> vcredist\_x86, and please let me know which version works with it

I have instaled Microsoft Visual C++ 2008 Feature Pack Redistributable  
Package (x86) and now gem installs properly. I am on Vista. gem -v =\>  
1.2.0

I will submit a bug on ruby gems project.

by  
TheR

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [September 20, 2008, 12:45am UTC](https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920/4 "2008-09-20T00:45:59Z")

</div>

On Sep 19, 3:42 am, Damjan R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Package (x86) and now gem installs properly. I am on Vista. gem -v =\>  
> 1.2.0
> 
> I will submit a bug on ruby gems project.
> 
> by  
> TheR

You’re getting the building native extension issue since the gem  
specification file that defines the gem contains the reference to the  
extension extconf file.

Gems that are supposed to be “native” for a specific platform should  
have their extensions definition emtpy. pure-ruby or the ones that  
requires building those, should contain the extconf, makefile or other  
references for RubyGems to fire the proper process for them.

On a side note, bundling nmake.exe is a direct violation of  
distributing licenses of Microsoft Visual Studio.

Regards,

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [September 19, 2008, 9:00am UTC](https://www.ruby-forum.com/t/problem-installing-qt4-gem-on-windows/148920/5 "2008-09-19T09:00:12Z")

</div>

So, it works 🙂 It’s needed cause, i compiled Qt 4.4.1 and qtruby with  
Visual Studio 2008.

Damjan R. schrieb:

> 

–  
Otto Software Partner GmbH

Jan P. (e-mail: removed\_email\_address@domain.invalid)

Tel. 0351/49723202, Fax: 0351/49723119  
01067 Dresden, Freiberger StraÃŸe 35 - AG Dresden, HRB 2475  
GeschÃ¤ftsfÃ¼hrer: Burkhard Arrenberg, Heinz A. Bade, Jens Gruhl
