部署 64 位 win7 下的错误

penggensheng · 2012年11月02日 · 最后由 bighead 回复于 2012年11月13日 · 3914 次阅读

启动 RAILS 出现以下错误,有高手解决下吗?

c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': 193: %1 不是有效的 Win32 应用程序。 - c:/RailsInstaller/Ruby1 .9.3/lib/ruby/1.9.1/i386-mingw32/digest/sha1.so (LoadError) fr om c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' fr om c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:1:in <top (required)>' fr om c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler.rb:126:inload' fr from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler.rb:110:in setup' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/setup.rb:7:in' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in require' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:inrescue in require' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in require' from E:/rabel/config/boot.rb:6:in' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from script/rails:5:in `

'

建议单独安装Ruby 1.9.3p286和 DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe,railsinstaller 版本有点旧,也许新版本已经解决了这个问题了。

C:\git>rails -v
Rails 3.2.8

C:\git>gem --version
1.8.24

C:\git>ruby -v
ruby 1.9.3p286 (2012-10-12) [i386-mingw32]

建议你换用 linux 系统解决

建议重启一下,我也出现过这个问题

需要 登录 后方可回复, 如果你还没有账号请 注册新账号