0

昨晚我在开发 Rails 3.2.1 应用程序,一切正常。然而,今天早上我跑的时候rails server,我遇到了这个奇怪的问题:

> c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
> 36:in `require': 193: %1 is not a valid Win32 application.   -
> c:/RailsInstaller
> /Ruby1.9.3/lib/ruby/1.9.1/i386-mingw32/digest/sha1.so (LoadError)
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
> m_require.rb:36:in `require'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
> lib/bundler/definition.rb:1:in `<top (required)>'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
> lib/bundler.rb:148:in `definition'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
> lib/bundler.rb:116:in `setup'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/
> lib/bundler/setup.rb:7:in `<top (required)>'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
> m_require.rb:59:in `require'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
> m_require.rb:59:in `rescue in require'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
> m_require.rb:35:in `require'
>         from c:/Users/user/rails_projects/fyff/config/boot.rb:6:in `<top (requir ed)>'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
> m_require.rb:36:in `require'
>         from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
> m_require.rb:36:in `require'
>         from script/rails:5:in `<main>'

我刚刚花了很多时间寻找解决方案,我的一些发现是 Rails 安装程序的问题:

https://github.com/oneclick/rubyinstaller/issues/102
https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-dep_segfault

但是故障排除/修复似乎不适用于我,因为我不记得曾经见过“FRAPS”或“detours”。

谁能解释一下为什么会突然发生这种情况?任何解决方案/尝试将不胜感激!

4

1 回答 1

1

重新启动似乎是解决此问题的唯一方法。我已经有过几次了,没有明显的原因。但重启后一切似乎都很好。

于 2013-09-22T12:26:32.207 回答