In the CentOS 5.7 mailbox, I had problems installing the latest version of the mysql2 gem; he does not find errmsg.h:
/usr/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... no
checking for mysql_query() in -lmysqlclient... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
checking for errmsg.h... no
-----
errmsg.h is missing. please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Mysql header files exist in / usr / include / mysql. There is an older version of the pearl on the server, so it must be successfully built in one moment.
Note that it does not work when checking mysql.h, but succeeds in mysql / mysql.h. However, this does not repeat it for errmsg.h. Under this, I assume that it does not look / usr / include, but I'm not sure.
extconf.rb , have_header . , , "mysql/errmsg.h". , , .
has_header ?