db:create:all generates an "Segmentation Fault "
Trying to generate the databases using ruby 1.9.1p243 on Windows 7 return an "Segmentation Fault".
To cause the error follow the steps:
1) Open a command line (cmd)
2) rails myapp -d mysql
3) cd myapp
4) rake db:crate:all
After a while Windows pops up the message "Ruby interpreter (CUI) 22.214.171.124[i386-mingw32] stopped working" and close the program.
In command line I receive the following message:
: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:002554 d:002554 TOP
-- Ruby level backtrace information-----------------------------------------
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Updated by luislavena (Luis Lavena) over 9 years ago
Please check the version of MySQL you're trying to connect Ruby to.
If is MySQL 5.1, then the segmentation fault is expected.
mysql gem has been binary compiled against MySQL 5.0:
If you want to manually compile it for your current installation of MySQL, please take a look to RubyInstaller tutorials for instructions:
This is not a Ruby-core issue, is a 3rd party one.