I am getting “segmentation fault” when I try to run the following
piece of ruby code.
I installed the latest version of MySQL version for Windows 5.1.22
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.
I am getting “segmentation fault” when I try to run the following
piece of ruby code.
I installed the latest version of MySQL version for Windows 5.1.22
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:
Download “mysql-5.0.45-win32.zip” from the MySQL community server 5.0
downloads page
Extract and run the contained “Setup.exe”
Perform installation of MySQL 5.0.45
Install mysql 2.7.3 win32 using “gem install mysql”
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.