Problem installing Qt4 gem on Windows

D

Damjan Rems

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
 
J

Jan Pilz

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 said:
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


--
Otto Software Partner GmbH

Jan Pilz (e-mail: (e-mail address removed))

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
 
D

Damjan Rems

Jan said:
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
 
J

Jan Pilz

So, it works :) It's needed cause, i compiled Qt 4.4.1 and qtruby with
Visual Studio 2008.

Damjan said:
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


--
Otto Software Partner GmbH

Jan Pilz (e-mail: (e-mail address removed))

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
 
L

Luis Lavena

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

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,
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top