Hi Guyren,

I found some hints on a MySQL forum: (
http://forums.mysql.com/read.php?116,178217,178217#msg-178217)

On my CentOS system, there are two mysql_configs: /usr/bin/mysql_config and
/usr/lib/mysql/mysql_config

I would try the --with-mysql-config option with both, or whereever there are
other mysql_config's. Since you are on 64 bit, maybe its:

gem install mysql -- --with-mysql-config=/usr/lib64/mysql/mysql_config

Also, the docs for the gem on http://www.tmtm.org/en/mysql/ruby/ show that
there are a couple other params you can pass to extconf.rb:

Install

1st:

% ruby extconf.rb

 or

% ruby extconf.rb --with-mysql-dir=/usr/local/mysql

 or

% ruby extconf.rb --with-mysql-config

 then

% make

 extconf.rb has following options:
--with-mysql-include=*dir* MySQL header file directory. Default is
/usr/local/include. --with-mysql-lib=*dir* MySQL library directory. Default
is /usr/local/lib. --with-mysql-dir=*dir* Same as
--with-mysql-include=*dir*/include,
--with-mysql-lib=*dir*/lib. --with-mysql-config[=*/path/to/mysql_config*] Get
compile-parameter from mysql_config command. I'm sure you've tried all
these, but just in case :)
I've had problems too in the past, which were fixed either with a dev
library or a client dev library. Sounds like you have them all though.

Good luck!

--
Adam Grant

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to