2015-04-06 136 views
1

在試圖安裝nio4r寶石。我試圖noi4r寶石安裝問題

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的問題嗎?

回答

3

隨着一些基本的更新,我能夠得到它的工作。

bundle update

然後

bundle

安裝寶石。

由於https://github.com/celluloid/nio4r/issues/46

另一種方法是安裝Ruby的更高版本與RVM並再次執行bundle。這兩個作品

+1

我不得不運行'捆綁更新nio4r'並添加到列表中失敗的所有其他寶石,它的工作很好。 –