"193: %1 Is Not a Valid Win32 Application" Bug With a New Rails Application

193: %1 is not a valid Win32 application bug with a new Rails Application

Here's the answer that worked for me. Turns out it was an issue of x64 vs. x32 issue and Rails 2.3.2.

The answer I got from here (http://osdir.com/ml/RubyonRailsTalk/2009-06/msg01775.html):

In case anyone else has the same
problem after a lot of struggling on
my Windows XP x64 machine, with MySQL
5.1.30 (x64) and Rails 2.3.2 installed, this above suggestiong
helped me.
Download libMySql.dll from here (http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/)
and putting it in ruby\bin solved the
problem.

Getting Rails running on Win7 x64

Not an answer, but a suggestion that might be suitable: VMWare/Virtualbox with a linux image. Turnkey rails might be a place to start, but their release is a bit old.

It's not like you were planning to deploy your apps on Windows anyway(!), so Samba for file sharing and PuTTy for console, there's no need for the headache of trying to running and maintaining Rails on Windows. As a bonus, you get things like git and ssh for free.

rake db:create failing on Win7 x64

Apparently it was the dll that was faulty. Used this approach.



Related Topics



Leave a reply



Submit