/ / रत्न इंस्टॉलर में रूबी स्थापित करते समय त्रुटि (विंडोज 7) - रूबी-ऑन-रेल, रूबी, रूबीज

रेल पर रूबी स्थापित करते समय जेम इंस्टॉलर त्रुटि (विंडोज 7) - रूबी-ऑन-रेल, रूबी, रूबीजम्स

मुझे रेल साइट पर रूबी स्थापित करने की कोशिश में एक त्रुटि हो रही है। मैंने पहले कभी रूबी का उपयोग नहीं किया, इसलिए सब कुछ इंस्टॉलर से साफ है।

मैंने "Ruby 1.9.3 और RubyGems 2.0.3 स्थापित किया है। मैंने तब रेल का उपयोग करके स्थापित किया है gem और के साथ एक रिक्त साइट बनाई rails new। कुछ बिंदु पर मैंने निर्देशानुसार देवकीट को भी स्थापित किया यहाँ - मैं ठीक से याद नहीं कर सकता, लेकिन मुझे स्पष्ट रूप से कुछ बिंदु पर पूछा गया था। मैंने इसके बाद इसका उपयोग शुरू करने की कोशिश की rails server, लेकिन यह मुझे उपयोग करने के लिए कह रहा है bundle install कुछ लापता जवाहरात स्थापित करने के लिए। काफी आसान है, लेकिन जब मैं कोशिश करता हूं कि मुझे निम्न आउटपुट मिले:

Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.3)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.2)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.5.3)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using bundler (1.3.5)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Installing json (1.7.7)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

"C:/Ruby/Ruby 1.9.3/bin/ruby.exe" extconf.rb
C:/Ruby/Ruby 1.9.3/bin/ruby.exe: invalid option -1  (-h will show valid options) (RuntimeError)


Gem files will remain installed in C:/Ruby/Ruby 1.9.3/lib/ruby/gems/1.9.1/gems/json-1.7.7 for inspection.
Results logged to C:/Ruby/Ruby 1.9.3/lib/ruby/gems/1.9.1/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.7.7), and Bundler cannot continue.
Make sure that `gem install json -v "1.7.7"` succeeds before bundling.

मुझे एक ही त्रुटि मिलती है जब या तो चल रहा है gem install json -v "1.7.7" या केवल gem install json। इस विशेष त्रुटि ने खुद को Googling के लिए प्रतिरोधी साबित कर दिया है, इसलिए मैंने सोचा कि मैं यहाँ पूछने की कोशिश कर रहा हूँ। किसी भी मदद की सराहना की जाएगी!

उत्तर:

जवाब के लिए 2 № 1

खैर, यह पता चला कि समस्या यह थी कि रास्तामेरी रूबी स्थापित करने के लिए इसमें रिक्त स्थान हैं। यह स्पष्ट रूप से कई स्थानों पर दृढ़ता से विस्थापित है, लेकिन त्रुटि संदेश पर्याप्त रूप से असंबंधित था कि मुझे दो और दो को एक साथ रखने में थोड़ा समय लगा।