ruby - 在 Windows 上安装 "kgio-2.9.2"Gem 时出错

标签 ruby windows

在 Windows 上安装 kgio gem 时遇到问题

使用 Ruby 2.1.6 32 位并安装 DevKit。

Installing kgio 2.9.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    C:/Ruby21/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:/Ruby21/bin/ruby
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib

extconf failed, exit code 1
Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/kgio-2.9.2
 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/kgi
o-2.9.2/gem_make.out
An error occurred while installing kgio (2.9.2), and Bundler cannot continue.

Make sure that `gem install kgio -v '2.9.2'` succeeds before bundling.

最佳答案

运行 Windows 7,这对我有用:

rails unicorn install error with kgio 2.8.0

平台:ruby 做 gem “ unicorn ” 结束

关于ruby - 在 Windows 上安装 "kgio-2.9.2"Gem 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31234917/

相关文章:

ruby - Prawn :创建一个带有标题横幅和重复标题表的PDF

ruby - rspec Controller 操作后测试失败,并出现 ActiveModel::ForbiddenAttributesError

Ruby - 类方法中问号的使用

c++ - 关于我的教科书示例中的 GDI 映射

windows - Qt 应用程序在 Windows 下看起来和感觉起来是原生的吗?

用于取消隐藏被病毒隐藏的文件的 Windows 批处理脚本

javascript - link_一键指向多个链接

ruby - Ruby 中的数字数组和半数字

java - 使 jar 文件可在其他计算机上运行?

php - 将 Windows 时区转换为 PHP 设置的等效时区