From: Gunnar Date: 2006-02-14T01:08:25+09:00 Subject: Can not install mysql-binding 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 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