Rails OpenSSL Problem on Win7 x64

Hi,

I've encountered this error :

=> Booting Mongrel => Rails 2.3.5 application starting on http://127.0.0.1:3344 D:/nu codes/R/ruby-1.8.7-p248-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-p248-i386-mswin32/lib/ruby/1.8/i386-mswin32/openssl.so (RuntimeError) from D:/nu codes/R/ruby-1.8.7-p248-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-p248-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-p248-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-p248-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-p248-i386-mswin32/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from D:/nu codes/R/ruby-1.8.7-p248-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-p248-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-p248-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-p248-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-p248-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-p248-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

while trying to run my server today. I've recently upgraded from Vista x32 to Win7 x64.

My environment is :

*** LOCAL GEMS ***

actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) 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.2) rake (0.8.7)

I've also tried with Rails v2.3.5 (and its respective dependencies), to no avail. I'm running RubyGems 1.3.5, ruby 1.8.7-p248, MySQL 5.0.89 . My project worked on Vista x32, using ruby 1.8.6. I will try reverting to 1.8.6, although it seems to be a OpenSSL error. I have OpenSSL 0.9.8l (L) in my PATH, the required .dlls (ssleay32 etc.) in my ruby\bin directory as well.

I have no clue what I should to next. Thank you in advance for any answer !

I don't use windows, but a quick search seems to indicate that this can happen when an 32 bit executable tries to load a 64 bit dll (or vice versa). Could it be that your ruby is 32bit you've got the x64 version of openssl (or something along those lines) ?

Fred

Hi, I've tried uninstalling everything x64 on my machine (MySQL, OpenSSL) yet still having the same problems. I honestly do not know why OpenSSL is required in the first place. I will try reverting to Ruby 1.8.6. And yes, before I was running x64 MySQL, x64 OpenSSL and the usual flavour of ruby (mswin32, don't think there's a x64 version). I will try going x32 all the way, don't know what else it could be.

Thank you for the reply !!

I have tried reverting everything to x32 - MySQL, OpenSSL, going up to x64 with ruby 1.9.1, reverted back to 1.8.6 x32, to absolutely no avail, still the same error. Well in the end it was all about some randomly missing dll, used

as a guide.. Thanks !