Forum: Ruby Can not install mysql-binding

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Gunnar (Guest)
on 2006-02-13 18:08
(Received via mailing list)
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 <snipped>:
	Attempting local installation of 'mysql'
	Local gem file not found: mysql*.gem
	Attempting remote installation of 'mysql'
	Updating Gem source index for:
	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?
This topic is locked and can not be replied to.