# Problem building 'mysql' gem on an AMD64

**URL:** <https://www.ruby-forum.com/t/problem-building-mysql-gem-on-an-amd64/61275>\
**Category:** Ruby\
**Created:** [May 22, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/problem-building-mysql-gem-on-an-amd64/61275 "2006-05-22T17:44:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandru\_ESUngur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5e925/32.png) [@Alexandru\_ESUngur](https://www.ruby-forum.com/u/Alexandru_ESUngur)\
**Post date:** [May 22, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/problem-building-mysql-gem-on-an-amd64/61275/1 "2006-05-22T17:44:01Z")

</div>

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™ 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
