In the winows\system32 directory you may find a file called regserver32 or something like that. Drag the dll onto that and drop and see if that fixes it.
________________________________
From: Kai König <
kai@...>
To: ruby-talk ML <
ruby-talk@...>
Sent: Thursday, July 9, 2009 10:15:07 AM
Subject: Re: Why is my server shutting down?
For some reason, however, it appears that Rails is unable to find a required MySQL dll. The best fix I’ve been able to find (ok, I admit this is clunky, but anyhow it works) is to copy libmySQL.dll from your MySQL binary directory (for example, C:\Program Files\MySQL\MySQL Server 5.0\bin) into the Ruby binary directory (for example, C:\ruby\bin). Restart your application (shut down and restart the server), then try running it again. For me, that fixes the problem.
cheers
On 09.07.2009, at 14:10, Jason Cheung wrote:
> I start the MySQL server with the "ruby script/server" command.
> It loads fine.
> When I go to localhost:3000, the server immediately shuts down and
> throws out an error. It says:
> C:\ruby\lib\ruby\gems\1.8\gems\activerecord-2.3.2\lib\active_record\connection_adapters\abstract_adapter.rb:39:
> [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [i386-mswin32].
> I've been looking around online and many have the same error occuring.
> I'm running mysql 5.0.83, rails 2.3.2, ruby 1.8.6 and rubygems 1.3.4.
>
> Can anybody help!?
> Thanks,
> Jay
> --Posted via
http://www.ruby-forum.com/.
>