[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

mongrel fails to install

Thufir Hawat

11/28/2007 8:50:00 PM

I'm going to play around with it, but why would it fail? permissions?


C:\code>
C:\code>gem install mongrel
Bulk updating Gem source index for: http://gems.rub...
Select which gem to install for your platform (i386-mswin32)
1. mongrel 1.1.1 (ruby)
2. mongrel 1.1.1 (jruby)
3. mongrel 1.1.1 (mswin32)
4. mongrel 1.1 (mswin32)
5. mongrel 1.1 (ruby)
6. mongrel 1.1 (jruby)
7. Skip this gem
8. Cancel installation
> 1
Install required dependency gem_plugin? [Yn] y
Install required dependency cgi_multipart_eof_fix? [Yn] y
Install required dependency daemons? [Yn] y
Install required dependency fastthread? [Yn] y
Select which gem to install for your platform (i386-mswin32)
1. fastthread 1.0.1 (mswin32)
2. fastthread 1.0.1 (ruby)
3. Skip this gem
4. Cancel installation
> 2
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install mongrel
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in C:/ruby/lib/ruby/gems/1.8/gems/
fastthread-1.0
1 for inspection.
Results logged to C:/ruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/
fastthread
/gem_make.out

C:\code>
C:\code>ver

Microsoft Windows XP [Version 5.1.2600]

C:\code>



thanks,

Thufir

4 Answers

Alex Young

11/28/2007 9:04:00 PM

0

Thufir wrote:
> I'm going to play around with it, but why would it fail? permissions?
>
>
> C:\code>
> C:\code>gem install mongrel
> Bulk updating Gem source index for: http://gems.rub...
> Select which gem to install for your platform (i386-mswin32)
> 1. mongrel 1.1.1 (ruby)
> 2. mongrel 1.1.1 (jruby)
> 3. mongrel 1.1.1 (mswin32)
> 4. mongrel 1.1 (mswin32)
> 5. mongrel 1.1 (ruby)
> 6. mongrel 1.1 (jruby)
> 7. Skip this gem
> 8. Cancel installation
>> 1
> Install required dependency gem_plugin? [Yn] y
> Install required dependency cgi_multipart_eof_fix? [Yn] y
> Install required dependency daemons? [Yn] y
> Install required dependency fastthread? [Yn] y
> Select which gem to install for your platform (i386-mswin32)
> 1. fastthread 1.0.1 (mswin32)
> 2. fastthread 1.0.1 (ruby)
> 3. Skip this gem
> 4. Cancel installation
>> 2

You're trying to build a native extension on a platform without a
compiler. Select the mswin32 option for fastthread.

--
Alex

Luis Lavena

11/29/2007 6:36:00 PM

0

> You're trying to build a native extension on a platform without a
> compiler. Select the mswin32 option for fastthread.
>

The same goes for Mongrel, just install the mswin32 version which
ships with the precompiled extensions.

Jack Johnson

11/30/2007 1:55:00 PM

0

Luis Lavena wrote:
>> You're trying to build a native extension on a platform without a
>> compiler. Select the mswin32 option for fastthread.
>>
>
> The same goes for Mongrel, just install the mswin32 version which
> ships with the precompiled extensions.

I've been running into the same problem with the latest updates. Even when I
select the mswin32 version of fastthread it tries to compile, and fails. So,
the first issue I'm encountering is that gem updates are trying to compile
native versions when it should be installing precompiled extensions.

The second issue is the compile failures. I do have VC8 installed, which
some research has suggested might be the problem here - I've seen comments
to the effect that only VC6 or VC7 will work for gems. Can anybody confirm
or deny this before I switch out my Visual Studio installation?

Thanks!
--
Jack Johnson
Cyberworlds Inc.
http://www.cyberw...
608-362-0318 x114


---- Posted via Pronews.com - Premium Corporate Usenet News Provider ----
http://www.p... offers corporate packages that have access to 100,000+ newsgroups

Luis Lavena

11/30/2007 10:55:00 PM

0

On Nov 30, 10:54 am, "Jack Johnson" <jjohn...@cyberworlds.com> wrote:
> Luis Lavena wrote:
> >> You're trying to build a native extension on a platform without a
> >> compiler. Select the mswin32 option for fastthread.
>
> > The same goes for Mongrel, just install the mswin32 version which
> > ships with the precompiled extensions.
>
> I've been running into the same problem with the latest updates. Even when I
> select the mswin32 version of fastthread it tries to compile, and fails. So,
> the first issue I'm encountering is that gem updates are trying to compile
> native versions when it should be installing precompiled extensions.
>

There is a pre-compiled version of fastthread on the site. Also, the
mswin32 gems did not depend on fastthread (it doesn't include it as
dependency).

Let me ask you: did you upgraded your RubyGem installation, right? the
official 0.9.5 version currently don't handle the mswin32 platform
correctly. Fixes are in svn, but still no official word.

you should revert to 0.9.4 and try installing mongrel again.

> The second issue is the compile failures. I do have VC8 installed, which
> some research has suggested might be the problem here - I've seen comments
> to the effect that only VC6 or VC7 will work for gems. Can anybody confirm
> or deny this before I switch out my Visual Studio installation?

VC7 (VC2003 or 7.1, whatever you like to call it) it "almost"
compatible with the build or Ruby, which was done with VC6.

If you're lucky enough to get a license of VC6 (ebay maybe?), you can
set it and start compiling mongrel and their dependencies :-)

VC8 is a no no, since it requires tweaks to rbconfig.rb to include the
manifest definitions and also face a cross-linking of runtime
information (MSVCRT.dll vs. MSVCR80.DLL) -- That could be a real
nightmare.