From: Andrew Ting Date: 2009-12-22T04:07:00+09:00 Subject: Re: Help with gem ruby mysql error Yes thanks Philip, about the verbatim. Anyone with any experience on this? :) ============================================ 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 ============================================== 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 but got the following error :- $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/rpl_ndb/my.cnf Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-config=/usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/rpl_ndb/my.cnf extconf.rb:10: command not found: /usr/local/mysql-5.1.41-osx10.5-x86/mysql-test/suite/rpl_ndb/my.cnf --cflags Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out -- Posted via http://www.ruby-forum.com/.