使用xcode 4.5.1在OSX Lion 10.8.2上编译eventmachine gem [英] getting eventmachine gem to compile on OSX Lion 10.8.2 with xcode 4.5.1

查看:108
本文介绍了使用xcode 4.5.1在OSX Lion 10.8.2上编译eventmachine gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到处都可以找到,但似乎无法找到解决方案。我在Lion 10.8.2上使用xcode 4.5.1 - 我试图为一个rails项目运行bundle,并且一直在干扰这个。我正在使用宝石瘦为heroku。现在我不得不做的事情 - 任何人都可以找到解决方案吗?

I've looked everywhere I can find but can't seem to find a solution to this. I'm using xcode 4.5.1 on Lion 10.8.2 - I'm trying to run bundle for a rails project and it keeps jamming up on this. I'm using gem 'thin' for heroku. For now I'm having to do without thin - anyone find a solution?

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


推荐答案

您必须安装命令行工具来自 developer.apple.com

另外我在使用MacOSX10.6.sdk时遇到了一些问题,导致一些标题在那里丢失,所以我安装了MacOSX10.5.sdk并且一切正常。

Also I was having troubles with MacOSX10.6.sdk cause some headers was missing there, so I installed MacOSX10.5.sdk and all worked fine.

这篇关于使用xcode 4.5.1在OSX Lion 10.8.2上编译eventmachine gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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