gpt4 book ai didi

ruby-on-rails - noi4r gem 安装问题

转载 作者:太空宇宙 更新时间:2023-11-03 18:13:49 24 4
gpt4 key购买 nike

尝试安装 nio4r gem。我试过了

gem install nio4r -v '1.0.0'

弹出的错误是:

Building native extensions.  This could take a while...
ERROR: Error installing nio4r:

ERROR: Failed to build gem native extension.

/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150406-11564-1qtifmf.rb extconf.rb

checking for rb_thread_blocking_region()... no
checking for sys/select.h... yes
checking for poll.h... yes
checking for sys/epoll.h... no
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for port.h... no
checking for sys/resource.h... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling monitor.c
In file included from monitor.c:6:
In file included from ./nio4r.h:10:
/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward/rubyio.h:2:2: warning: use "ruby/io.h" instead of "rubyio.h" [-W#warnings]
warning use "ruby/io.h" instead of "rubyio.h"

...

我哪里错了?我的 RVM 有问题吗?

最佳答案

通过一些基本的更新,我能够让它工作。

bundle 更新

然后

bundle

安装 gem。

感谢https://github.com/celluloid/nio4r/issues/46

另一种方法是使用 RVM 安装更高版本的 ruby​​,然后再次执行 bundle。两个作品

关于ruby-on-rails - noi4r gem 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29476596/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com