On Jul 9, 2009, at 7:10 AM, Jason Cheung wrote:
I start the MySQL server with the “ruby script/server” command.
It loads fine.
Actaully, that’s how you are starting you Rails server, most likely.
Usually a MySQL server is started with a command like mysqld_safe.
When I go to localhost:3000, the server immediately shuts down and
throws out an error. It says:
[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!?
There’s some nasty bug in whatever code Rails needs to load to display
the homepage of your site. It really shouldn’t be segfaulting, but
that’s the issue.
The error looks like it is probably related to connecting to your
database, just because of where it comes from in the code. Here are
some reality check type questions:
- Do you have a database installed?
- Is that database running?
- Is your config/database.yml file correctly pointed at that database?
Beyond that, you may find better help on the Rails mailing list:
James Edward G. II