Forum: Ruby Problem building 'mysql' gem on an AMD64...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
245cfab887781bdf3f53178b794c42dc?d=identicon&s=25 Alexandru E. Ungur (Guest)
on 2006-05-22 17:44
(Received via mailing list)
Hi all,

I am having a bit of a hardtime installing the mysql gem on
an AMD 64:
Here are all the details I think that could be useful. The
system is an RHEL 4(Update 3) with Ruby freshly installed
from sources (so is rubygems). I (think I) have all the
necessary rpms for building the native extensions, yet
no luck at all. Any help is greatly appreciated, TIA.


# cat /proc/cpuinfo |grep name
model name      : AMD Athlon(tm) 64 Processor 3200+


# ruby -v
ruby 1.8.4 (2005-12-24) [x86_64-linux]


# gem -v
0.8.11


# ruby extconf.rb --with-mysql-dir=/usr
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/bin/ruby
    --with-mysql-config
    --without-mysql-config
    --with-mysql-dir
    --with-mysql-include
    --without-mysql-include=${mysql-dir}/include
    --with-mysql-lib
    --without-mysql-lib=${mysql-dir}/lib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-mlib
    --without-mlib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-zlib
    --without-zlib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-socketlib
    --without-socketlib
    --with-mysqlclientlib
    --without-mysqlclientlib
    --with-nsllib
    --without-nsllib
    --with-mysqlclientlib
    --without-mysqlclientlib


# rpm -qa|grep -i mysql
mysql-server-4.1.12-3.RHEL4.1
mysql-devel-4.1.12-3.RHEL4.1
mysql-4.1.12-3.RHEL4.1
mysql-4.1.12-3.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
perl-DBD-MySQL-2.9004-3.1
mysqlclient10-devel-3.23.58-4.RHEL4.1
This topic is locked and can not be replied to.