Ruby on Rails Win7 x64?[英] Ruby on Rails Win7 x64?

本文是小编为大家收集整理的关于Ruby on Rails Win7 x64?的处理方法,想解了Ruby on Rails Win7 x64?的问题怎么解决?Ruby on Rails Win7 x64?问题的解决办法?那么可以参考本文帮助大家快速定位并解决问题。

问题描述

我刚刚升级到 Win7 x64 Professional 并想重新开始开发我的 Rails 应用程序,但是我收到以下错误:

=> Booting Mongrel
=> Rails 2.3.5 application starting on http://127.0.0.1:3344
D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': 193: %1 is not a valid Win32 application.   - D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/1.8/i386-mswin32/openssl.so (RuntimeError)
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from D:/nu codes/R/Aptana/tempproj/config/environment.rb:9
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:84
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from D:/nu codes/R/ruby-1.8.7-p174-i386-mswin32/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from D:/nu codes/R/Aptana/tempproj/script/server:3
from -e:1:in `load'
from -e:1

Process finished with exit code 1

在尝试运行服务器时.通过将所需的 .dll 复制到我的 ruby​​\bin 目录中,我已经缓解了有关 OpenSSL 和 Iconv 的所有错误.我对这个感到难过,难道我现在正在运行 x64 吗?我不知道,至少其他堆栈跟踪名为 .dll 导致它.

宝石上市:

*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
authlogic (2.1.3)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
mongrel (1.1.5)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

我也在运行 MySQL v5.1.41-community.我会尝试安装 MySQL 5.0.

  • 更新:我必须说我从来没有在项目中使用过 OpenSSL,所以我必须说我很困惑,首先它是必需的.试图查看它是否是 Rails 错误,我创建了一个虚拟应用程序 (rails bla),并且 rails 甚至不会创建默认骨架,因为一些随机错误 ("raise NotImplementedError, "No random device") 在 "activesupport/lib/active_support/secure_random.rb" .我用谷歌搜索并用 github.这创建了骨架,但是尝试运行服务器时我得到了同样的错误,即使它是 Rails 默认的虚拟应用程序.我会尝试破解它再次文件,再次不知道 OpenSSL 首先在这里做什么并且需要 DLL.

如有任何帮助,我们将不胜感激.提前致谢!

推荐答案

毕竟是 DLL 问题,去了 1.8.6,x32 MySQL 和 OpenSSL,解压了所有提到的 dll 在这篇优秀的博文中 一切都再次顺利运行,天哪!是的,毕竟我已经回答了我自己的问题 :-) 谢谢!

本文地址:https://www.itbaoku.cn/post/786665.html