首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >extconf.rb失败( Rails)

extconf.rb失败( Rails)
EN

Stack Overflow用户
提问于 2014-05-27 10:45:24
回答 1查看 1.8K关注 0票数 0

我对红宝石和铁轨很陌生。我已经成功地(在windows 7上)在rails 4上设置了ruby 2。我克隆了一个基于rails的git项目(thingspeak https://github.com/iobridge/thingspeak/blob/master/README.textile)。使用命令行,我进入项目目录并运行"bundle install“。下载并安装了几个包,然后我得到了以下错误-

代码语言:javascript
复制
::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    c:/row/Ruby200/bin/ruby.exe extconf.rb
checking for CLOCK_MONOTONIC in time.h... yes
checking for clockid_t in time.h... yes
checking for clock_gettime() in -lrt... no
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/row/Ruby200/bin/ruby
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib

Gem files will remain installed in c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/kgio-
2.8.1 for inspection.
Results logged to c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/kgio-2.8.1/ext/kgio/ge
m_make.out
An error occurred while installing kgio (2.8.1), and Bundler cannot continue.
Make sure that `gem install kgio -v '2.8.1'` succeeds before bundling.

关于它的含义和如何解决它,有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2014-05-27 12:38:45

无法在这里编译的Windows在kgio上不起作用。如果您在Gemfile中对各自的行进行注释,它可能会工作,但在其他地方可能会失败。

一般来说,您想要安装的Rails应用程序似乎根本没有在Windows上进行测试,所以您可能希望使用更受支持的操作系统来安装它。自述文件在这里提到了Ubuntu。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23887378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档