2012-10-17 36 views
11

मैंने पहले इस पर कई पोस्ट देखी हैं और उनके निर्देशों का पालन किया है लेकिन कुछ भी काम नहीं कर रहा है। मैंने जो किया है उसके नीचे मैं रेखांकित करूँगा, और मेरे द्वारा दिए गए निर्देश - किसी भी सलाह के लिए आभारी होंगे! के रूप में निर्देश दिए और स्थापितमाउंटेन शेर पर रूबी स्थापित करने में समस्याएं - रूबी 1.9.3 वेंट 'संकलित

$ gcc --version 
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) 
Copyright (C) 2007 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions. There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 

मैं तो किया है:

मैं निम्नलिखित स्थापना के निर्देश का पालन किया है: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac

मैं OSX माउंटेन शेर के लिए एक्स-कोड डाउनलोड किया है, और जीसीसी संकलक स्थापित गिट

$ git --version 
git version 1.7.10.2 (Apple Git-33) 

और इसी तरह आरवीएम के साथ कमांड लाइन के माध्यम से वही किया गया:

$ rvm --version 
rvm 1.16.13 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] 

जब मैं तो रूबी RVM का उपयोग कर स्थापित करने का प्रयास, मैं निम्नलिखित मिल:

$ rvm install 1.9.3 
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p286. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
Installing Ruby from source to: /Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)... 
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection... 
ruby-1.9.3-p286 - #extracted to /Users/mondemoo/.rvm/src/ruby-1.9.3-p286 (already extracted) 
ruby-1.9.3-p286 - #configuring 
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mondemoo/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286', please read /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log 
There has been an error while running configure. Halting the installation. 

वैकल्पिक कमांड लाइन मैं एक ऐसी ही आउटपुट प्राप्त का उपयोग करते हुए, हालांकि कुछ अतिरिक्त बिट के साथ:

$ rvm install 1.9.3 --with-gcc=clang 
-bash: -dumpversion: command not found 
-bash: --version: command not found 
-bash: --version: command not found 
Installing Ruby from source to: /Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286, this may take a while depending on your cpu(s)... 
ruby-1.9.3-p286 - #downloading ruby-1.9.3-p286, this may take a while depending on your connection... 
ruby-1.9.3-p286 - #extracted to /Users/mondemoo/.rvm/src/ruby-1.9.3-p286 (already extracted) 
ruby-1.9.3-p286 - #configuring 
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mondemoo/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286 --with-gcc=clang', please read /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log 
There has been an error while running configure. Halting the installation. 
-bash: --version: command not found 

$ less /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log 
[2012-10-17 07:39:15] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mondemoo/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mondemoo/.rvm/rubies/ruby-1.9.3-p286 --with-gcc=clang 
checking build system type... x86_64-apple-darwin12.2.0 
checking host system type... x86_64-apple-darwin12.2.0 
checking target system type... x86_64-apple-darwin12.2.0 
checking whether the C compiler works... no 
configure: error: in `/Users/mondemoo/.rvm/src/ruby-1.9.3-p286': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 
:

configure.logs में देख रहे हैं, मैं निम्नलिखित मिल

अब मैं पूरी तरह उलझन में हूं कि मैंने क्या किया है - क्या कोई भी सहायता करने में सक्षम है ?? ऐसा लगता है कि सी-कंपाइलर (जीसीसी?) के साथ कोई समस्या है, क्या मैं इसे सही तरीके से व्याख्या कर रहा हूं? यदि ऐसा है तो मैं इसे कैसे ठीक करूं? इसके अलावा मैं इस "config.log" को कैसे प्राप्त करूं जो उपरोक्त config.log में उल्लिखित है?

धन्यवाद!

+0

कृपया टर्मिनल आउटपुट के लिए चार-स्पेस इंडेंटेशन का उपयोग करके अपनी पोस्ट को प्रारूपित करें। –

+1

तो कॉन्फ़िगर लॉग क्या कहता है? – halfelf

+0

कृपया /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log पढ़ें, यह इसके बारे में विनम्र है। –

उत्तर

22

यह RailsInstaller OSX में एक बग है 1.0.3 - https://github.com/railsinstaller/railsinstaller-nix/issues/10

आप इस को रोकने के लिए /etc/rvmrc को बदलने की जरूरत:

umask g+w 
export -a rvm_configure_env 
rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include') 

मैं संस्थापक का नया संस्करण तैयार करेंगे जब द्विआधारी माणिक के लिए उपलब्ध है 2.0.0।

अद्यतन: RVM के नए संस्करण के लिए 1.19+/etc/rvmrc करने के लिए बदल दिया जाना चाहिए:

umask g+w 
export rvm_autolibs_flag=smf 

और rvm get stabel #OR: head

+0

मेरी आखिरी पोस्ट को अनदेखा करें, बस लाइन जारी है - अब इसे आजमाएंगी। – MrBernz

+0

बिल्कुल सही, धन्यवाद !! – MrBernz

+0

बहुत बहुत धन्यवाद! यह मेरे लिए काम किया ... और रूबी 2.0.0 भी स्थापित करने के लिए। – markstewie

1

सुनिश्चित नहीं हैं कि मैं इसे 'सही' जिस तरह से किया था चलाते हैं, लेकिन मैं सिर्फ हटाया RVM (rvm implode) और फिर इसे पुनः स्थापित किया (\ curl -L https://get.rvm.io | bash -s स्थिर - रूबी) और यह स्थापित है और अब ruby ​​का नवीनतम संस्करण 1.9.3-p327 कोई समस्या नहीं चल रहा है।

+0

चलाते हैं, मुझे वास्तव में यह फिर से काम करने के लिए मिला है, हालांकि मुझे अभी भी अन्य चीजों का निर्माण करने के लिए अन्य समस्याएं हैं जिनके लिए मूल एक्सटेंशन की आवश्यकता है। :( – Adron