From: Richard Navarrete Date: 2006-02-05T14:07:52+09:00 Subject: Re: install mysql-ruby on RHEL Good call, Logan. [richard@www richard]$ rpm -qa | grep -i mysql MySQL-shared-compat-4.0.25-0 mysql-devel-3.23.58-16.RHEL3.1 php-mysql-4.3.2-26.ent MySQL-server-4.0.25-0 MySQL-client-4.0.25-0 I guess I'll grab the mysql-devel-4.0.25 (if there is such and try to install it). Although I'm not sure why mysql_config isn't there. I'll let you know how it goes. Thanks! R On Feb 4, 2006, at 9:29 PM, Logan Capaldo wrote: > > On Feb 4, 2006, at 2:04 PM, Richard Navarrete wrote: > >> Hey Oliver, >> >> I'm using 4.0.25 and I think it's self compiled or came installed >> already. Unfortunately, I can't remember if I installed it by >> hand, but for sure it wasn't using RPMs, because I don't see such >> tracings in /usr/src/redhat... >> >> I'm still checking to see how MySQL got there. heh >> >> So, I assume by your comment that all mysql installations should >> have a mysql_config? >> >> Here are a few mysql files/folders I found on my system: >> >> /usr/bin/safe_mysqld >> /usr/bin/mysql ...mysqldump, etc >> /usr/include/mysql/libmysqlclient.so >> /usr/include/mysql/libmysqlclient.so.10 >> /usr/include/mysql >> /usr/lib/libmysqlclient.so >> /usr/lib/libmysqlclient.so.10 >> /usr/lib/libmysqlclient.so.12 >> /usr/lib/libmysqlclient_r.so >> /usr/lib/libmysqlclient_r.so.10 >> /usr/lib/libmysqlclient_r.so.12 >> /usr/lib/mysql >> /usr/lib/libmysqlclient.so.10.0.0 >> /usr/lib/libmysqlclient.so.12.0.0 >> /usr/lib/libmysqlclient_r.so.10.0.0 >> /usr/lib/libmysqlclient_r.so.12.0.0 >> >> /usr/sbin/mysqld >> /usr/share/mysql >> >> I'll see if I can find out how it was installed... >> >> Thanks, >> Richard >> >> On Feb 4, 2006, at 11:36 AM, Oliver Andrich wrote: >> >>> Hi, >>> >>> I just checked on my RHEL boxes, and even your method to compile the >>> module works fine there. What version of MySQL are you using and >>> from >>> which source did you take it? Official MySQL rpm files from >>> mysql.com? >>> Self-compiled? >>> >>> The first strange thing in my eyes is, that mysql_config is not >>> there. >>> Every rpm I know of installs it in /usr/bin as part of the basic >>> MySQL >>> package. ANd the second strange thing is the error while running >>> your >>> test code. >>> >>>> [richard@www mysql-ruby-2.7]$ ruby ./test.rb localhost root >>>> ertgnhbr >>>> ./test.rb:143: undefined method `client_version' for Mysql:Class >>>> (NoMethodError) >>> >>> I don't think that the compiler is the source of your problems. >>> Can you >>> supply the MySQL version and from where you have taken it? Or >>> where it >>> is installed? >>> >>> Regards, >>> Oliver >>> >>> -- >>> Oliver Andrich --- oliver.andrich@gmail.com --- http://roughbook.de/ >>> >> >> > > Speaking totally out of my rear end here, but it looks like A) its > installed from an rpm (judging by the directories its installed to) > and B) you need to install the -devel version of the rpm. Of course > I could be completely wrong since its been a long time since A) > I've used Linux and B) I almost always use Debian. >