From: Hassan Schroeder Date: 2009-12-22T05:57:02+09:00 Subject: Re: Help with gem ruby mysql error On Mon, Dec 21, 2009 at 11:07 AM, Andrew Ting wrote: > Some of the cnf files found, which should be used? > > /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql4/files/my.cnf > /usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/federated/my.cnf > /usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/ndb/my.cnf > /usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/rpl/my.cnf > /usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/rpl_ndb/my.cnf None of the above -- > i found a few my.cnf found and replaced with say:- > > sudo gem install mysql -- > --with-mysql-config=/usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/rpl_ndb/my.cnf --with-mysql-config=/usr/local/mysql-5.1.41-osx10.5-x86/bin/mysql_config is what you're looking for... (The 'my.cnf' files are runtime configurations; you would copy an appropriate version to /etc/my.cnf, but don't worry about that now.) HTH, -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan