我使用Fedora 14和MySQL和MySQL服务器5.1.42安装和运行。 现在我试着以根用户的身份做这个:
gem install mysql
但是我得到了这个错误:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
这里出了什么问题?在安装的ruby 1.8.7。以及最新的rubygems 1.3.7。