Mandriva – Rails 2.3.2 – mysql gem – ‘ERROR: Error installing mysql’

You are trying to install the mysql gem in Mandriva, but it fails with error messages:

After searching in google, with solutions about providing different options (– –with-mysql-config, ..etc), even trying different combinations for providing the client library path, the configuration file, or the header file path, was still faced with the same error installing the mysql gem.
As the Mandriva installation was quite new, it turns out to be a couple of missing packages.
So try:

and run:


It should work out ok install the gem and output: