# Can not install mysql-binding

**URL:** <https://www.ruby-forum.com/t/can-not-install-mysql-binding/53674>\
**Category:** Ruby\
**Created:** [February 13, 2006, 5:08pm UTC](https://www.ruby-forum.com/t/can-not-install-mysql-binding/53674 "2006-02-13T17:08:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunnar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ed655f/32.png) [@gunnar](https://www.ruby-forum.com/u/gunnar)\
**Post date:** [February 13, 2006, 5:08pm UTC](https://www.ruby-forum.com/t/can-not-install-mysql-binding/53674/1 "2006-02-13T17:08:34Z")

</div>

Hi all  
I cannot install native MySQL-binding on my iMac G5 using OSX 10.4.4, ie  
“sudo gem install mysql – --with-mysql-dir=/usr/local/mysql”  
fails with :  
Attempting local installation of ‘mysql’  
Local gem file not found: mysql\*.gem  
Attempting remote installation of ‘mysql’  
Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Building native extensions. This could take a while…  
\*\*\* 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.  
The mkmf.log’s first part:  
iMac:/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 gunnar$ more mkmf.log  
find\_library: checking for mysql\_query() in -lmysqlclient…  
-------------------- no

```
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin8.4.0 

```

-I/usr/local/mysql/include -g -O2 -pipe -fno-common conftes  
t.c -L"/usr/local/mysql/lib" -L"/usr/local/lib" -lruby-static  
-lmysqlclient -ldl -lobjc "  
/usr/bin/ld: truncated or malformed archive:  
/usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of  
contents exte  
nds past the end of the table of contents, can’t load from it)  
collect2: ld returned 1 exit status  
Is there anything I can do to make it install OK?  
Regards  
Gunnar
