无法安装“gem install eventmachine".我的项目需要八哥,对于八哥,我需要安装 eventmachine [英] Failed to install "gem install eventmachine". I need starling in my project, for starling i need to install eventmachine

查看:61
本文介绍了无法安装“gem install eventmachine".我的项目需要八哥,对于八哥,我需要安装 eventmachine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的控制台出现以下错误

I am getting the following error on my console

root@comp09:~# gem install eventmachine
Building native extensions.  This could take a while...
ERROR:  Error installing eventmachine:
 ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile

make
I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DWITH_SSL    -fPIC -O2 -g -Wall -Wno-parentheses -Wno-long-long     -o rubymain.o -c rubymain.cpp
make: I.: Command not found
make: [rubymain.o] Error 127 (ignored)
I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DWITH_SSL    -fPIC -O2 -g -Wall -Wno-parentheses -Wno-long-long     -o em.o -c em.cpp
make: I.: Command not found

如有任何帮助和建议,我们将不胜感激.

For any help and suggestion it would be greatly appreciated.

推荐答案

我在 Ubuntu 11.10 安装 eventmachine 时遇到了类似的问题.
不同之处在于(接近日志末尾)

I had a similar issue on Ubuntu 11.10 installing eventmachine.
The difference being (near the end of the logs)

make: g++: Command not found

代替

make: I.: Command not found

此问题与 GCC 上的 C++ 相关,可通过安装 build-essential 解决

This issue is related with C++ on GCC and resolved by installing build-essential

sudo apt-get install build-essential 

这篇关于无法安装“gem install eventmachine".我的项目需要八哥,对于八哥,我需要安装 eventmachine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆