From: Andrew Ohnstad Date: 2008-01-18T22:53:56+09:00 Subject: Re: MySQL gem on 64-bit Solaris won't compile Gerardo Santana G坦mez Garrido wrote: > You're mixing 32-bit and 64-bit libraries. > > Maybe Ruby is a 32-bit program and mysql.so is a 64-bit shared object. Well, yes, apparently this is true. My MySQL installation is 64 bit, and so as a result so are its libraries. andrewo@host:/opt/mysql/mysql/lib> file libmysqlclient.so libmysqlclient.so: ELF 64-bit LSB dynamic lib AMD64 Version 1, dynamically linked, not stripped, no debugging information available My Ruby installation is, indeed, a 32 bit install. That's how the package I installed compiled it. I tried changing that by recompiling in 64 bit mode early in this whole saga, but it was an absolute nightmare. I don't think the make files of most of the Ruby libraries play nicely with 64 bit compile options. I suppose I could install the libraries from a 32bit MySQL installation and rebuild the gem based on those... Any other ideas? -- Posted via http://www.ruby-forum.com/.