From: Richard Navarrete Date: 2006-02-05T02:07:34+09:00 Subject: Re: install mysql-ruby on RHEL Thanks, Oliver. I don't have a mysql_config, not sure why. But, I noticed it wasn't finding the header file (mysql.h), so I ran this: [richard@www mysql-ruby-2.7]$ make clean [richard@www mysql-ruby-2.7]$ ruby ./extconf.rb --with-mysql-dir=/usr --with-mysql-include=/usr/include/mysql checking for mysql_query() in -lmysqlclient... yes checking for mysql_ssl_set()... yes checking for mysql.h... yes creating Makefile This time if found it. [richard@www mysql-ruby-2.7]$ make gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/ local/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -I/usr/include/mysql -I/usr/include -c mysql.c gcc -shared -L'/usr/lib' -Wl,-R'/usr/lib' -L'/usr/local/lib' -Wl,-R'/ usr/local/lib' -o mysql.so mysql.o -lmysqlclient -ldl -lcrypt -lm -lc [richard@www mysql-ruby-2.7]$ ruby ./test.rb localhost root ertgnhbr ./test.rb:143: undefined method `client_version' for Mysql:Class (NoMethodError) Same error. Could my compiler be the problem? gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53) Thanks, Richard On Feb 4, 2006, at 10:28 AM, Oliver Andrich wrote: > Hi, > > I just packaged mysql-ruby for Fedora Core and in my SPEC file I use > > ruby extconf.rb --with-mysql-config > > This does the trick for me on Fedora Core 4. And I guess it would also > do the trick on a RHEL server. At least it does so for me using > RHEL 3. > > Kind regards, > Oliver > > -- > Oliver Andrich --- oliver.andrich@gmail.com --- http://roughbook.de/ >