MAC OS 10.6.4 安装rails mysql 驱动出错。

我的环境是:mac os 10.6.4 ruby (1.8.7) rails (2.3.5) mysql(5.1.5 32bit)
用以下命令安装 mysql 支持:gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
报以下错误:
[code="java"]

Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

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

[/code]

通过google尝试了n种方法始终不能解决。

求帮助!

http://2015.iteye.com/blog/620195试试