मैंने पहले इस पर कई पोस्ट देखी हैं और उनके निर्देशों का पालन किया है लेकिन कुछ भी काम नहीं कर रहा है। मैंने जो किया है उसके नीचे मैं रेखांकित करूँगा, और मेरे द्वारा दिए गए निर्देश - किसी भी सलाह के लिए आभारी होंगे! के रूप में निर्देश दिए और स्थापितमाउंटेन शेर पर रूबी स्थापित करने में समस्याएं - रूबी 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 में उल्लिखित है?
धन्यवाद!
कृपया टर्मिनल आउटपुट के लिए चार-स्पेस इंडेंटेशन का उपयोग करके अपनी पोस्ट को प्रारूपित करें। –
तो कॉन्फ़िगर लॉग क्या कहता है? – halfelf
कृपया /Users/mondemoo/.rvm/log/ruby-1.9.3-p286/configure.log पढ़ें, यह इसके बारे में विनम्र है। –