From: Daniel Griffiths Date: 2007-12-17T14:31:25+09:00 Subject: Re: MySQL Module - Segmentation Fault - Windows Venks wrote: > Hi, > > I am getting "segmentation fault" when I try to run the following > piece of ruby code. > > 1) I installed the latest version of MySQL version for Windows 5.1.22 > 2) I installed the MySQL module using "gem install mysql" and chose > option 1 (mysql 2.7.3. win32) > > I don't have this problem on Linux running Fedora. Unfortunately I > really need to make this work on my laptop running windows where most > of the development will be done. > > Thanks, > > -Venks I am having the same issue, although with MySQL version 5.0.45. The steps I followed were as followed: 1) Download "mysql-5.0.45-win32.zip" from the MySQL community server 5.0 downloads page 2) Extract and run the contained "Setup.exe" 3) Perform installation of MySQL 5.0.45 4) Install mysql 2.7.3 win32 using "gem install mysql" 5) Run "irb" and try "require 'mysql'" Each time I get: c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/mysql.so: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] Venks wrote: > No. I don't have the compiler and I can confirm that this is becuase >of MySQL 5.1. > >When I install MySQL 5.0 on my laptop, things work fine. I was wondering which specific version of MySQL 5.0 you used and whether you installed any other software to help get this to work. I have tried trawling through Google but the answers to Windows/MySQL/Ruby seem to be scattered and many are for older versions of Ruby. Thanks, Danny -- Posted via http://www.ruby-forum.com/.