0

I was working on a Rails 3.2.1 app last night and everything worked fine. However, this morning when I ran rails server, I got this weird problem:

> 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>'

I just spent quite some time looking for solutions, some of my findings are issues with the Rails installer:

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

But the troubleshooting/fix doens't seem to apply to me, as I don't recall ever seeing 'FRAPS' or 'detours'.

Can anyone explain why this is happening all of a sudden? Any solution/attempt would be greatly appreciated!

4

1 に答える 1

1

この問題を解決するには、再起動するしかないようです。明らかな理由もなく、私はそれを数回経験しました。しかし、再起動後はすべて問題ないようです。

于 2013-09-22T12:26:32.207 に答える