在 Windows 7 x86 上安装 Thin 时出现问题
我在 Windows 7 计算机上使用 thin 时遇到问题(我已经安装了 eventmachine v0 .8.1):
>
gem install Thin --ignore-dependencies
检查 -lc 中的 main()...否
创建Makefile制作
“make”不被识别为内部或外部命令、可运行程序或批处理文件。
难道没有预编译的二进制文件可用于瘦吗?
I'm having problems getting thin working on my Windows 7 machine (I've already installed eventmachine v0.8.1):
>
gem install thin --ignore-dependencies
checking for main() in -lc... no
creating Makefilemake
'make' is not recognized as an internal or external command, operable program or batch file.
Are there not meant to be precompiled binaries available for thin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
显然,没有任何预先构建的二进制文件。
您需要安装 C 编译器。如果您通过 RubyInstaller 安装 Ruby,那将非常简单,如果您使用一键安装程序,那么它将是一个 PITA。
另请参阅:在 Windows 上安装瘦的问题,其中包含 RubyInstaller 和一键安装程序维护者的回答。
Apparently, there aren't any pre-built binaries.
You will need a C compiler installed. If you installed Ruby via the RubyInstaller, that is going to be really easy, if you used the One-Click Installer, it's goint to be a PITA.
See also: problems installing thin on Windows, which contains an answer by the RubyInstaller and One-Click Installer maintainer.
实际上有针对特定版本 Thin 的预构建二进制文件,但您需要知道是哪些。要获取最新的预构建 win32 版本,请执行以下操作:
以下是我的安装结果:
There actually are pre-built binaries for particular versions of Thin but you need to know which ones. To get the latest pre-built win32 version do the following:
Here are the results from my installation:
我通过安装编译器解决了缺乏预编译二进制文件的问题:
gem install Thin
,令人惊讶的是,一切都成功了!我希望这可以帮助其他一些可怜的 Windows Ruby 开发人员! :-)
I've worked around the lack of precompiled binaries by installing a compiler:
gem install thin
and amazingly it all worked!I hope this helps out some other poor Windows ruby developer! :-)
事实上,thin 的二进制文件是可用的(显然从版本 1.2.2 开始就有)。
但是,我无法在带有 Ruby 1.9.2 (p290) 的 Windows 7 上安装 Thin,因为它依赖于 EventMachine。
运行 gem install Thin --ignore-dependencies 是安装 Thin 本身所需要的。
只是想为 Windows 上的其他一些 ruby 用户添加此注释。
A binary for thin is in fact available (and apparently one has been since ver 1.2.2).
However, I couldn't install thin on Windows 7 with Ruby 1.9.2 (p290) because of its dependency on EventMachine.
Running
gem install thin --ignore-dependencies
was what was needed to get thin itself installed.Just wanted to add this note for some other ruby on Windows user.