繁体   English   中英

无法捆绑/安装Kgio Error

[英]Can't bundle/install Kgio Error

我似乎无法使用我的应用程序安装kgio,每次我都进行捆绑安装。 我收到这个错误! 谁能帮我? 我已经尝试过捆绑5次了。

C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
    checking for CLOCK_MONOTONIC in time.h... no
    checking for CLOCK_MONOTONIC() in time.h... no
    checking for clockid_t in time.h... no
    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:/RailsInstaller/Ruby1.9.3/bin/ruby
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib

实际上,答案是你不能在窗户上使用kgio。 在找到答案之前,我花了3个小时在另一个答案中大汗淋漓。 根据它的开发者,Kgio需要类似unix的环境。

您可能缺少必需的库。

也来自RubyInstaller Wiki

这种失败是由于本机gem编译/安装过程使用的是libiconv-2.dll版本,而不是由于Windows搜索DLL的方式而集成到DevKit中的版本

这可以通过在计算机中搜索文件libiconv-2.dll并重命名,删除或以其他方式移动任何找到的实例并重新运行本机gem安装过程或在您的情况下捆绑安装来解决此问题。

如果您不知道将libiconv-2.dll文件放在找到它的目录中的原因或原因,建议您在编译所需的任何gem之后将其移回。 这可能会阻止其他应用程序崩溃。

编辑

kgio gem仅在类似Unix的系统上构建和运行( http://bogomips.org/kgio/ )它使用Windows上本机不可用的功能。

如果您尝试使用Unicorn,那么您只需要更换网络服务器。

试一试。 将以下行添加到您的Gemfile:

gem 'thin'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM