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

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn

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

Solution
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:

again.

It should work out ok install the gem and output: