2011-03-18 44 views
1

嗨,我有一個小問題,首先即時嘗試在XAMP服務器上運行ruby-on-rails項目有史以來我試圖運行「ruby腳本/服務器」命令一個messege窗口時說,我在想念的msvcrt-ruby191.dllruby​​腳本/服務器ERROR missing msvcrt-ruby191.dll

,並在命令提示符下輸出看起來像這樣

d:\umer\lightfantasticapp>ruby script/server 
=> Booting WEBrick 
=> Rails 2.3.5 application starting on http://0.0.0.0:3000 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- geokit-rails (MissingSourceFile) 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 

from d:/umer/lightfantasticapp/vendor/plugins/geokit-rails/init.rb:1:in`evaluate_init_rb' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/libinitializer.rb:369:in `load_plugins' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/libinitializer.rb:165:in `process' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run' 

from d:/umer/lightfantasticapp/config/environment.rb:11 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' 

from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' 

from script/server:3 

好心幫我,香港專業教育學院甚至試圖卸載並重新安裝框架的工作,我試圖安裝geokit,sql,gem,但沒有任何工作對我...任何suggetions ..?

回答

2

如果安裝了寶石對你沒有安裝

正如你所看到的錯誤被拋出,而試圖要求寶石 ç1.9.1編譯紅寶石時,拋出此錯誤:/ RailsInstaller/Ruby1 .8.7/lib中/紅寶石/ site_ruby/1.8/RubyGems的/ custom_require.rb:29

我猜它是JSON或MySQL的寶石

的解決辦法是卸載寶石(你使用mysql?)並使用--platform = ruby​​標誌進行安裝 gem uninstall json gem in失速json --platform = ruby​​ -v = 1.4.6