[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Problem installing Qt4 gem on Windows

Damjan Rems

9/18/2008 9:40:00 AM


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
--
Posted via http://www.ruby-....

4 Answers

Jan Pilz

9/18/2008 2:19:00 PM

0

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 Rems schrieb:
> 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: Jan.Pilz@osp-dd.de)

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


Damjan Rems

9/19/2008 6:43:00 AM

0

Jan Pilz 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


--
Posted via http://www.ruby-....

Jan Pilz

9/19/2008 6:51:00 AM

0

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

Damjan Rems schrieb:
> Jan Pilz 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
>
>
>


--
Otto Software Partner GmbH

Jan Pilz (e-mail: Jan.Pilz@osp-dd.de)

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


Luis Lavena

9/19/2008 10:45:00 PM

0

On Sep 19, 3:42 am, Damjan Rems <d_r...@yahoo.com> wrote:
> Jan Pilz 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
>

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,
--
Luis Lavena