इंस्टॉल करना मैंने अभी ओएस एक्स माउंटेन शेर (इसे पहले ही पछतावा) में अपग्रेड कर दिया है।ओएस एक्स 10.8 - '/usr/bin/i686-apple-darwin11-gcc-4.2.1' निष्पादित करने में त्रुटि - जेसन मणि
जेसन मणि की मूल सीमाओं को स्थापित करने के साथ समस्याएं हैं।
10.8 से पहले मेरे पास कमांड लाइन टूल्स स्थापित थे। रूबी 1.9.2 के साथ आरवीएम।
10.8 में अपग्रेड किया गया है और निम्नलिखित सामान किया:
- sudo chown आर
whoami
/usr/स्थानीय - काढ़ा अद्यतन
- काढ़ा नल homebrew/ड्यूप्स
- काढ़ा स्थापित सेब के gcc42
- स्थापित XCode 4.4
- XCode 4.4 के लिए स्थापित कमांड लाइन टूल्स
- निर्यात सीसी =/usr/स्थानीय/bin/जीसीसी-4.2 bash_profile में
- sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2
- संपादित करें: sudo xcode- चयन स्विच /Applications/Xcode.app/Contents/Developer
मैं अभी भी निम्न उत्पादन जब json मणि स्थापित करने मिलती है:
➽ gem install json -v '1.7.4'
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/Users/vincent/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
creating Makefile
make
/usr/bin/gcc-4.2 -I. -I/Users/vincent/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/x86_64-darwin11.3.0 -I/Users/vincent/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/Users/vincent/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I. -DJSON_GENERATOR -I/Users/vincent/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -O3 -Wall -O0 -ggdb -o generator.o -c generator.c
gcc-4.2: error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1': execvp: No such file or directory
make: *** [generator.o] Error 255
Gem files will remain installed in /Users/vincent/.rvm/gems/[email protected]/gems/json-1.7.4 for inspection.
Results logged to /Users/vincent/.rvm/gems/[email protected]/gems/json-1.7.4/ext/json/ext/generator/gem_make.out
किसी भी मदद के लिए यहाँ? मैं अपने निर्माण env कैसे डीबग कर सकते हैं? जब कोई बात नहीं आती है तो विशेषज्ञ नहीं, लेकिन मुझे लगता है कि जेसन मणि इंस्टॉलर मेरे पर्यावरण को अनदेखा कर रहा है क्योंकि यह जीसीसी के एक संस्करण का उपयोग कर रहा है जो मेरे सिस्टम पर मौजूद नहीं है और ब्रू इंस्टॉलर इसे या तो नहीं बनाता है।
➽ gcc-4.2
i686-apple-darwin11-gcc-4.2.1: no input files
➽ which gcc-4.2
/usr/local/bin/gcc-4.2
➽ ls /usr/bin/i686-apple-darwin11-gcc-4.2.1
ls: /usr/bin/i686-apple-darwin11-gcc-4.2.1: No such file or directory
मैंने ➽ sudo link /usr/local/bin/gcc-4.2 /usr/bin/i686-apple-darwin11-gcc-4.2.1
को सिम्लिंक करने का भी प्रयास किया। लेकिन उसने एक vfork टाइमआउट त्रुटि दी।
संपादित करें:
➽ brew doctor
gcc-4.2: error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1': execvp: No such file or directory
Warning: X11 is not installed.
You don't have X11 installed as part of your OS X installation.
This is not required for all formulae, but is expected by some.
You can download the latest version of XQuartz from:
https://xquartz.macosforge.org
EDIT2:
चला xcode का चयन XCode
edit3:
sudo xcode-select -switch /usr/bin
sudo ln -sf /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2
यह बात तय हो गई! असल में आप ओएस एक्स को/usr/bin फ़ोल्डर का उपयोग करके संकलित करने के लिए कहते हैं और फिर आप llvm-gcc-4.2 कंपाइलर को लिंक करते हैं जहां पुराना एक होता था। काम करता है! BAM!
स्रोत:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
आप प्रणाली का उपयोग Xcode आपूर्ति कमांड लाइन उपकरण है करने के लिए: http://jtimberman.housepub.org/blog/2012/02/26/xcode-command-line-tools/
यह मेरे लिए काम करता है! धन्यवाद ..... – rizidoro
एनपी। मैं खुशी से मदद कर सकता है। – SpoBo
+1 बहुत बहुत धन्यवाद। – botbot