我在我的控制台上收到以下错误
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
Run Code Online (Sandbox Code Playgroud)
如有任何帮助和建议,将不胜感激.
Dim*_*tas 43
我在安装eventmachine的Ubuntu 11.10上遇到过类似的问题.
区别在于(接近日志结尾)
make: g++: Command not found
Run Code Online (Sandbox Code Playgroud)
代替
make: I.: Command not found
Run Code Online (Sandbox Code Playgroud)
此问题与GCC上的C++有关,并通过安装build-essential解决
sudo apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)
您可能还缺少ruby开发包.根据您使用的ruby版本,可能是ruby-dev,ruby1.8-dev,ruby1.9-dev或ruby1.9.1-dev.我有同样的问题,并安装了ruby1.9-dev和ruby1.9.1-dev,这解决了我的问题.
这个网站让我尝试这种方法:http://ruby.about.com/od/faqs/qt/Extconf-Rb-1-In-Require-No-Such-File-To-Load-Mkmf- Loaderror.htm
| 归档时间: |
|
| 查看次数: |
13915 次 |
| 最近记录: |