2013-06-29 3 views
6

रेल (या अधिक विशेष रूप से, परमाणु) स्थापित करने का प्रयास करते समय मुझे एक त्रुटि मिल रही है।रेल 4.0 पर रूबी स्थापित करने में त्रुटि - atomic_reference.c त्रुटि 71

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

    /Users/dima/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb creating Makefile 

make compiling atomic_reference.c atomic_reference.c:50:9: warning: implicit declaration of function 'OSAtomicCompareAndSwap64' is invalid in C99 [-Wimplicit-function-declaration] 
    if (OSAtomicCompareAndSwap64(expect_value, new_value, &DATA_PTR(self))) { 
     ^1 warning generated. linking shared-object atomic_reference.bundle 

make install /usr/bin/install -c -m 0755 atomic_reference.bundle /Users/dima/.rvm/gems/[email protected]_rails_4_0/gems/atomic-1.1.10/lib/Users/dima/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/x86_64-darwin12.4.0 install: /Users/dima/.rvm/gems/[email protected]_rails_4_0/gems/atomic-1.1.10/lib/Users/dima/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/x86_64-darwin12.4.0: No such file or directory make: *** [install-so] Error 71 


Gem files will remain installed in /Users/dima/.rvm/gems/[email protected]_rails_4_0/gems/atomic-1.1.10 for inspection. Results logged to /Users/dima/.rvm/gems/[email protected]_rails_4_0/gems/atomic-1.1.10/ext/gem_make.out 

मैं मूल रूप से सिर्फ रेल ट्यूटोरियल अनुसरण कर रहा हूँ (रेल 4.0 के लिए और 2.0 रूबी, seen here) और एक तरह से यहाँ एक दीवार से टकरा दिया है, दुर्भाग्य से, यहाँ क्या हो रहा है पर ज्यादा जानकारी प्राप्त करने में असमर्थ।

मुझे this question मिला और उसी परिणाम के साथ उत्तर में दोनों सुझावों का पालन किया।

+0

आप किस ओएस का उपयोग कर रहे हैं? संपादित करें: मुझे लगता है कि आप अपने होम निर्देशिका पथ से ओएसएक्स का उपयोग कर रहे हैं। क्या आपने एक्सकोड और एक्सकोड कमांड लाइन इंटरफेस स्थापित किया है? –

+0

मैं ओएसएक्स पर हूं और मेरे पास एक्सकोड और सीएलआई स्थापित है। – Dima

उत्तर

14

वही ट्यूटोरियल से आने वाली एक ही समस्या थी। इसे this post के बाद काम करने के लिए मिला। पोस्ट के साथ gemsets तुलना करने के लिए कुछ कमांड भाग गया लेकिन क्या ठीक करने के लिए समस्या थी

  • मणि --system अद्यतन (बिना ट्यूटोरियल से "2.0.0", मुझे 2.0.3 के लिए अद्यतन)
  • लगते हैं मणि अद्यतन
  • मणि

(संस्करण निर्दिष्ट किए बिना फिर से) रेल स्थापित और अंत में यह मेरे मामले में नाकाम रहने के किया जा रहा है में ठीक से स्थापित

+0

'मणि अपडेट - सिस्टम 'ने आखिरकार चाल की। धन्यवाद! – Dima

+0

अभी भी यह समस्या है –

0

तो, कि Makefile एक = इन्सटाल किया है।/स्थापित करें और वें ere नहीं है ./install। मैं Makefile संपादित ./ बाहर ले जाने और उसके बाद

gem spec ../../../cache/atomic-1.1.14.gem --ruby > ../../../specifications/atomic-1.1.14.gemspec 

बाद

gem install rails 

सफल के साथ एक स्थानीय कल्पना बनाया है, लेकिन कोई पता नहीं है, तो यह मेरा रेल उदाहरण बँधा हुआ।

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