Issue installing gem on Mac OS 10.5.6


Hi all,
I am having issues with installing the mysql gem with the mysql
version 5.0.81 .Bulk updating Gem source index for:
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

extconf.rb install mysql – --with-mysql-dir=/usr/local/mysql
can’t find header files for ruby.

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7
for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out

I just tried googing and also referred a lots of blogs but nothing seems
to be working.

Anbody please shed some light on this issue of mine


You need to pass something when you install mysql gem. Just google for

On Tue, May 26, 2009 at 3:20 PM, Raghavendra Kamat