我下载的一对Rails应用程序依赖于bson_ext
,它似乎是一个本地代码库。当我运行rake gems:install
的应用程序,我得到了以下错误消息:如何解决失败的本机扩展在Windows上创建gem?
ERROR: Error installing bson_ext: ERROR: Failed to build gem native extension. d:/Ruby187/bin/ruby.exe extconf.rb checking for asprintf()... no checking for ruby/st.h... no checking for st.h... no checking for ruby/regex.h... no checking for regex.h... no checking for ruby/encoding.h... no creating Makefile make 'make' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in d:/Ruby187/lib/ruby/gems/1.8/gems/bson_ext-1.0.1 for inspection. Results logged to d:/Ruby187/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/gem_make.out
我的问题是:
请问我的Rails应用程序失败,因为这一点,我想我知道这个问题的答案?
如果我需要建立这个宝石,我可以在Windows上做到这一点?
如果它可以在Windows上构建,我需要什么工具链? GCC?
我应该放弃Windows for Rails开发并改用我的Mac或Linux VM吗?
这看起来很有前途。我设法建立了bson_ext,但还有另一个GCC编译器出于某种原因窒息的本地库。从来没有一个沉闷的时刻呃?为devkit提示:) – Kev 2010-07-01 09:48:59
@Kev,如果在编译扩展时遇到任何问题,请在RubyInstaller邮件列表中发布您的问题。这是一个非常敏感的论坛,他们非常快速地提供解决方案。 – horseyguy 2010-07-02 05:29:43