mingw - "Malformed version number string mingw32" when starting rails -


My OS: Windows XP, ruby: 1.8.7, Rail: 2.3.5

Everything Okay, but I have just installed "gcc-4.4.0-mingw32-bin", and to run gem installed rdiscount , then my rail can not start.

Now when I run Ruby Script / Server , or Rock Gems: Install , the following error will occur:

 < Code> Rack aborted! Distorted version number string mingw32 (see full trace by working with --trace) e: \ WORKSPACE_TOPCODER \ wenda_ror> ruby ​​script / server = & gt; Mongrel = Booting> Http://0.0.0.0:3000 E: /Ruby/ruby-187/lib/ruby/site_ruby/1.8/rubygems/version.rb: Rails starting at 182.3.5 Applications: 'Start In: Distorted Version Number String E: / RUB / RUB 187 / LB / RUB / GMGS / 1.8 / GEMS / RIS-2.3.3 / LIB / ARIANS / VENDOR_GAME_SSOURS_Intix. RB: 105: In 'New' from E: / Ruby / Ruby-187 / BB / Rabbi / Gems / 1.8 / Gems / Rail -2.3.5 / Leib / Rail / Seller- Gm_Source_index RB: 105: In 'Version_for_dir' from E: / Ruby / Ruby-187 / Leib / Ruby / Gems / 1.8 / Gems / Rail -2.3.5 / Leib / Rail / Seller- Gm_source_ Indek RB: 47: Refresh! From E./Ruby/ruby-187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/vendor_gem_source_index.rb: 45: In 'each' of: / Ruby / Ruby-187 / Lib / ruby ​​/ gemstone / 1.8 / gemstone / rail -2.3.5 / lib / rails / vendor_gem_source_index.rb: 45: `Refresh! 'E to: /Ruby/ruby-187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/vendor_gem_source_index.rb: 29: To start with E: / Ruby / Ruby-187 / Lib / ruby ​​/ gemstone / 1.8 / gemstone / rail -2.3.5 / lib / rails / gem_dependency.rb: 21: 'new' by E: /Ruby/ruby-187/lib/ruby/gems/1.8/ Gems / rail -2.3.5 / lib / rail / gem_dependency.rb: 21: in 'add_frozen_gem_path' with E: /Ruby/ruby-187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/ Initializer RB: 298: In 'add_gem_load_paths' from E: /Ruby/ruby-187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb: 132: In 'Process' from E: / 'Ruby / Ruby / 187 / Bb / Ruby / Gems / 1.8 / Gem-rail -2.3.5 / Leib / RILIR: 113: In' Send 'From: Ruby / Ruby / 187 / Leib / Ruby / Gems / 1.8 / Gems / Rail -2.3.5 / Leib / Initial RB: 113: In 'Run' from E: /WORKSPACE_TOPCODER/wenda_ror/config/environment.rb: 9 to E: / Ruby / Ruby-187 / Lib / Ruby /site_ruby/1.8/rubygems/custom_require.rb31:in E 'Gem_original_require': /Ruby/ruby-187/lib/ruby/site_ruby/1.8/rubygems/custom_requir e. RB: 31: 'Requirement' from E: /Ruby/ruby-187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb: 156: In `requirement ' 

Now I have re-established my Ruby and Rail, but the same error still happens. And I searched in Google, found no solution. It seems that I have to re-install my Windows XP. Do you know any reason? Help ...

Just now, I got the solution: "vendor / gem"

< P> The reason may be that I ran the Rake Gems: Unpack after setting the GCC , so some invalid files were unpacked in the "Gems" directory. After I removed them, everything is fine.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -