2015-04-13 6 views
5

मैं गीथूब से एक संग्रह क्लोन करने की कोशिश कर रहा हूं और मैं उस चरण पर हूं जहां मैं "बंडल इंस्टॉल" चलाता हूं। हालांकि हर मैं इस मैं निम्नलिखित संदेश मिल चलाने का प्रयास:बंडल इंस्टॉल इवेंटमाचिन मणि अपडेट नहीं करेगा

An error occurred while installing eventmachine (1.0.3), and Bundler cannot 
continue. 
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling. 

जब मैं चलाने मैं "मणि eventmachine -v '1.0.3' स्थापित"

Building native extensions. This could take a while... 
ERROR: Error installing eventmachine: 
    ERROR: Failed to build gem native extension. 

    /Users/christinating/.rbenv/versions/2.1.5/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_wait_for_single_fd()... yes 
checking for rb_enable_interrupt()... no 
checking for rb_time_new()... yes 
checking for sys/event.h... yes 
checking for sys/queue.h... yes 
creating Makefile 

make "DESTDIR=" clean 

make "DESTDIR=" 
compiling binder.cpp 
In file included from binder.cpp:20: 
In file included from ./project.h:29: 
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38: 
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216: 
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:15: 
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:439: 
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628: 
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604: 
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found 
#include <__debug> 
     ^
1 error generated. 
make: *** [binder.o] Error 1 

make failed, exit code 2 

Gem files will remain installed in /Users/christinating/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3 for inspection. 
Results logged to /Users/christinating/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/eventmachine-1.0.3/gem_make.out 

मैं के एक नंबर की कोशिश की है समाधान (कि काम नहीं किया) है कि मैं ऑनलाइन पाया:

  1. मैं अपने .ruby-संस्करण फ़ाइल और gemfile में 2.1.5 करने के लिए अपने गहरे लाल रंग का संस्करण बदल दिया है।

  2. मैंने अपने gemfile.lock और gemfile में eventmachine संस्करण भी 1.0.4 और फिर 1.0.7 में भी बदल दिया है। प्रत्येक परिवर्तन के बाद मैंने बंडल इंस्टॉल या मणि इंस्टालमाचिन को चलाने की कोशिश की। जो सिर्फ निम्नलिखित का उत्पादन:

ला रहा है: eventmachine-1.0.7.gem (100%) बिल्डिंग देशी एक्सटेंशन। इसमें कुछ समय लग सकता है ... त्रुटि: eventmachine इंस्टॉल करने में त्रुटि: त्रुटि: मणि देशी एक्सटेंशन बनाने में विफल।

 /Users/christinating/.rbenv/versions/2.1.5/bin/ruby extconf.rb 
    checking for rb_trap_immediate in ruby.h,rubysig.h... no 
    checking for rb_thread_blocking_region()... yes 
    checking for ruby/thread.h... yes 
    checking for rb_thread_call_without_gvl() in ruby/thread.h... 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_fd_select()... yes 
    checking for rb_fdset_t in ruby/intern.h... yes 
    checking for rb_wait_for_single_fd()... yes 
    checking for rb_enable_interrupt()... no 
    checking for rb_time_new()... yes 
    checking for sys/event.h... yes 
    checking for sys/queue.h... yes 
    checking for clock_gettime()... no 
    checking for gethrtime()... no 
    creating Makefile 

    make "DESTDIR=" clean 

    make "DESTDIR=" 
    compiling binder.cpp 
    In file included from binder.cpp:20: 
    In file included from ./project.h:29: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:15: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:439: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604: 
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found 
    #include <__debug> 
      ^
    1 error generated. 
    make: *** [binder.o] Error 1 

    make failed, exit code 2 

    Gem files will remain installed in /Users/christinating/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7 for inspection. 
    Results logged to /Users/christinating/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/eventmachine-1.0.7/gem_make.out 
    Christinas-iMac:scholarhood christinating$ gem install eventmachine 
    Building native extensions. This could take a while... 
    ERROR: Error installing eventmachine: 
     ERROR: Failed to build gem native extension. 

     /Users/christinating/.rbenv/versions/2.1.5/bin/ruby extconf.rb 
    checking for rb_trap_immediate in ruby.h,rubysig.h... no 
    checking for rb_thread_blocking_region()... yes 
    checking for ruby/thread.h... yes 
    checking for rb_thread_call_without_gvl() in ruby/thread.h... 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_fd_select()... yes 
    checking for rb_fdset_t in ruby/intern.h... yes 
    checking for rb_wait_for_single_fd()... yes 
    checking for rb_enable_interrupt()... no 
    checking for rb_time_new()... yes 
    checking for sys/event.h... yes 
    checking for sys/queue.h... yes 
    checking for clock_gettime()... no 
    checking for gethrtime()... no 
    creating Makefile 

    make "DESTDIR=" clean 

    make "DESTDIR=" 
    compiling binder.cpp 
    In file included from binder.cpp:20: 
    In file included from ./project.h:29: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:15: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:439: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628: 
    In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604: 
    /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found 
    #include <__debug> 
      ^
    1 error generated. 
    make: *** [binder.o] Error 1 

    make failed, exit code 2 

    Gem files will remain installed in /Users/christinating/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7 for inspection. 
    Results logged to /Users/christinating/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/eventmachine-1.0.7/gem_make.out 

मैं वास्तव में विचारों से बाहर हूं और वास्तव में कुछ मदद की ज़रूरत है !!!

+0

[http://stackoverflow.com/questions/17361958/eventmachine-gem-install-fail] – djrock

+1

मै मैक पर हूं, मुझे उन निर्देशों को नहीं लगता मेरे लिए काम?? – chiccaboom

+0

यह समस्या का मूल कारण है: http://stackoverflow.com/questions/29529455/missing-c-header-debug-after-updating-osx-command-line-tools-6-3 –

उत्तर

4

क्या हुआ था कि मेरे पास xcode इंस्टॉल नहीं था! एक बार जब मैंने डाउनलोड किया तो मैं बंडल इंस्टॉल करने और इवेंटमाचिन को अपडेट करने में सक्षम था

+0

यह होना चाहिए कुछ लाइब्रेरी जो एक्सकोड के साथ बंडल की गई थीं। क्या किसी को पता है कि यह क्या है? –

संबंधित मुद्दे