在Windows上安装瘦的问题 [英] problems installing thin on Windows

查看:139
本文介绍了在Windows上安装瘦的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows上安装Thin(ruby 1.8.6(2007-09-24 patchlevel 111)[i386-mswin32]),但收到错误消息:


C:> gem install thin构建原生
扩展。这可能需要
,而...错误:错误安装
thin:
错误:无法构建gem本机扩展。



C:/rails/ruby/bin/ruby.exe extconf.rb
检查c.lib中的main()... no
创建Makefile



Microsoft(R)程序维护
实用程序版本1.50版权所有(c)
Microsoft Corp 1988-94。所有权利
保留。

  cl -nologo -I。 -一世。 -IC:/rails/ruby/lib/ruby/1.8/i386-mswin32 

-I。 -MD -Zi -O2b2xg- -G6 -c -Tcparser.c'cl'不被识别为内部或外部命令,
可操作的程序或批处理文件。 NMAKE
:致命错误U1077:
'C:\WINDOWS\system32\cmd.exe':返回
代码'0x1'停止。



Gem文件将保留安装在
C:/rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5
以供检查。记录到
的结果C:/rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5/ext/thin_parser/gem_make.out


Google在这里似乎没有帮助我。有人知道发生了什么?



谢谢 编译它所使用的C扩展。虽然看起来你有 nmake ,但似乎没有完整的Visual C ++ 6.0来构建它(缺少 cl

我建议你使用基于MinGW的Ruby构建,称为RubyInstaller,它是一键式安装程序的继承者。

Thin提供该版本的预编译二进制文件。另外,如某些教程中所述添加开发工具包,您应该能够编译您可以在RubyInstaller nofollow noreferrer>网站



此外,如果您还有其他问题,请阅读 Wiki 部分。



希望有帮助。


I'm trying to install Thin on Windows (ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]) but get an error message:

C:>gem install thin Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension.

C:/rails/ruby/bin/ruby.exe extconf.rb checking for main() in c.lib... no creating Makefile

nmake

Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved.

    cl -nologo -I. -I. -IC:/rails/ruby/lib/ruby/1.8/i386-mswin32

-I. -MD -Zi -O2b2xg- -G6 -c -Tcparser.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1' Stop.

Gem files will remain installed in C:/rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5 for inspection. Results logged to C:/rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5/ext/thin_parser/gem_make.out

Google doesn't seem to help me here. Someone knows what is going on?

Thanks

解决方案

Thin needs to compile a C extension used by it. While it seems you have nmake, seems that you don't have the complete Visual C++ 6.0 required to build it (the missing cl is the C compiler).

I would recommend you use the build of Ruby based on MinGW, called RubyInstaller, which is the successor of One-Click Installer.

Thin provides pre-compiled binaries for that Ruby version. Also, adding the Development Kit as documented in some Tutorials, you should be able to compile other gems that lack binaries for Windows.

You will find download details and more information in the RubyInstaller website

Also, if you have further questions, please read the FAQ section of the wiki.

Hope that helps.

这篇关于在Windows上安装瘦的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆