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.
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
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
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
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.