From: Dave Lilley Date: 2010-12-16T16:27:52+09:00 Subject: Re: mysql gem segfault on line 343 Dave Lilley wrote in post #968778: > Luis Lavena wrote in post #968543: > >> >> What version of mysql gem you have installed? (gem list mysql) >> >> You need to download mysql 5.0.x and just copy libmysql.dll from the >> bin directory. You can use the noinstall zip packages: >> >> http://downloads.mysql.com/archives.php?p=mysql-5.0&o=-win >> >> 5.0.91, Microsoft Windows 32, (first download in the list) > > Downloaded it and then tried it again and got the same error. > >> >> Place that file and let's solve the segfault, the others errors are >> incorrect usage of Sequel, which I can't help you with. > > The Sequel stuff works just fine under linux so i cannot accept that > comment. > (well okay the Sequel.mysql.connect maybe wrong but it was a test). > > So now I've tried 3 versions of libmysql.dll files sizes are 242Kb, > 1.484Kb and now this one 2.020Kb > > So now i'll try the other mysql zip files (just in case one of them > works). > > dave. This problem is SOLVED !!! NO more seg faults. I had installed a very recent release of mysql (this was in an attempt to get over the early problems I had). Now it appears when i ran my script it went to the mysql bin directory found and used THE libmysql.dll that was found there! no the version I had in ruby187\lib (also tried the DLL in the ruby187\bin but with no luck) I've now removed the server from the system (low disk space biggest reason) moved the DLL back to ruby187\bin and it still works (failed with it in ruby187\lib). regards, Dave. -- Posted via http://www.ruby-forum.com/.