本文介绍了如何使EventMachine gem在Xcode 4.5.1的OSX Lion 10.8.2上编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我四处寻找可以找到的解决方案,但似乎找不到解决方案.
I looked everywhere I can find but can't seem to find a solution to this.
我在Lion 10.8.2上使用Xcode 4.5.1,并试图为Rails项目运行bundle
,并且它一直在阻塞.我正在为Heroku使用Thin宝石.
I'm using Xcode 4.5.1 on Lion 10.8.2, and am trying to run bundle
for a Rails project and it keeps jamming up on this. I'm using the Thin gem for Heroku.
Bolanos@Jeremys-Mac-mini ⦿-1.9.3 fishfarm $ sudo gem install eventmachine
Password:
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/Users/Bolanos/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for sys/event.h... yes
checking for sys/queue.h... yes
creating Makefile
make
compiling binder.cpp
make: g++-4.2: No such file or directory
make: *** [binder.o] Error 1
Gem files will remain installed in /Users/Bolanos/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0 for inspection.
Results logged to /Users/Bolanos/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0/ext/gem_make.out
现在我必须没有Thin.有人有解决方案吗?
For now I'm having to do without Thin. Does anyone have a solution?
推荐答案
您必须从 developer.apple.com .
我也遇到了MacOSX10.6.sdk的麻烦,因为那里缺少一些标题,所以我安装了MacOSX10.5.sdk并一切正常.
Also I was having troubles with the MacOSX10.6.sdk because some headers were missing there, so I installed the MacOSX10.5.sdk and all worked fine.
这篇关于如何使EventMachine gem在Xcode 4.5.1的OSX Lion 10.8.2上编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!