【发布时间】:2012-10-16 06:05:49
【问题描述】:
我到处寻找我能找到的地方,但似乎找不到解决办法。
我在 Lion 10.8.2 上使用 Xcode 4.5.1,并试图为 Rails 项目运行 bundle,但它一直在这个问题上卡住。我正在为 Heroku 使用 Thin gem。
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。有人有解决办法吗?
【问题讨论】:
-
你的 g++ 呢?你安装了 Xcode 的命令行工具了吗?
-
是的,我安装了这些工具 - 它适用于我的所有其他应用程序,我可以创建一个新的并安装 Thin 并且它可以工作 - 它不适用于这个特定的应用程序。
-
我决定删除我的应用程序并从 git 重新开始,它可以工作 - 从来没有想过一个应用程序不能工作。
标签: ruby-on-rails ruby heroku thin eventmachine