用 gem install mysql 安装错误信息如下
[root@Lil lib]# 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
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
creating Makefile
然后安装mysql2时的错误信息如下:
[root@Lil lib]# gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... no
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile
gem组建信息:
*** LOCAL GEMS ***
actionmailer (3.2.11)
actionpack (3.2.11)
activemodel (3.2.11)
activerecord (3.2.11)
activeresource (3.2.11)
activesupport (3.2.11)
arel (3.0.2)
builder (3.0.4)
bundler (1.2.3)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.9)
erubis (2.7.0)
execjs (1.4.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
json (1.7.6)
libv8 (3.11.8.13 x86_64-linux)
mail (2.4.4)
mime-types (1.19)
mongrel (1.1.5)
mongrel_cluster (1.0.5)
multi_json (1.5.0)
polyglot (0.3.3)
rack (1.4.4)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.11)
railties (3.2.11)
rake (10.0.3)
rdoc (3.12)
ref (1.0.2)
sprockets (2.2.2)
sqlite3 (1.3.7)
sqlite3-ruby (1.3.3)
therubyracer (0.11.3)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.35)
试了好多方法都不管用,不知道还缺什么东四,有高人在 fedora16 上成功的果断帮个忙阿~小的谢过