I've found other online references to this error:
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
... blah blah
The most apparently relevant is old, though, from November 2005
Is this still the case? Does anyone know of an alternative workaround?
Unfortunately I only have gcc4.0.2 on this system (SuSE 10.0 64bit).