Hi Hassan,
The file is in the include subfolder.
ls -al /usr/local/mysql/include
total 1136
drwxr-xr-x  45 root  wheel   1530  5 Apr 10:23 .
drwxr-xr-x  17 root  wheel    578 11 May 12:53 ..
-rw-r--r--   1 root  wheel   4507  5 Apr 08:27 big_endian.h
-rw-r--r--   1 root  wheel   5196  5 Apr 08:27 byte_order_generic.h
-rw-r--r--   1 root  wheel   4536  5 Apr 08:27 byte_order_generic_x86.h
-rw-r--r--   1 root  wheel   4016  5 Apr 08:27 byte_order_generic_x86_64.h
 ....
-rw-r--r--   1 root  wheel  31232  5 Apr 08:27 my_pthread.h
-rw-r--r--   1 root  wheel  41163  5 Apr 08:27 my_sys.h
-rw-r--r--   1 root  wheel   2817  5 Apr 08:27 my_xml.h
drwxr-xr-x  25 root  wheel    850  5 Apr 10:23 mysql
*-rw-r--r--   1 root  wheel  29058  5 Apr 08:27 mysql.h*
-rw-r--r--   1 root  wheel  23605  5 Apr 08:27 mysql_com.h
-rw-r--r--   1 root  wheel   1313  5 Apr 08:27 mysql_com_server.h
-rw-r--r--   1 root  wheel   1185  5 Apr 08:27 mysql_embed.h
-rw-r--r--   1 root  wheel   2168  5 Apr 08:27 mysql_time.h
-rw-r--r--   1 root  wheel    854  5 Apr 09:53 mysql_version.h
-rw-r--r--   1 root  wheel  91661  5 Apr 09:53 mysqld_ername.h
-rw-r--r--   1 root  wheel  33795  5 Apr 09:53 mysqld_error.h
-rw-r--r--   1 root  wheel  23633  5 Apr 08:27 plugin.h
-rw-r--r--   1 root  wheel   3996  5 Apr 08:27 plugin_audit.h
-rw-r--r--   1 root  wheel   7589  5 Apr 08:27 plugin_ftparser.h
-rw-r--r--   1 root  wheel   1576  5 Apr 08:27 plugin_validate_password.h
-rw-r--r--   1 root  wheel   4834  5 Apr 08:27 sql_common.h
-rw-r--r--   1 root  wheel  13273  5 Apr 09:53 sql_state.h
-rw-r--r--   1 root  wheel   1350  5 Apr 08:27 sslopt-case.h
-rw-r--r--   1 root  wheel   2556  5 Apr 08:27 sslopt-longopts.h
-rw-r--r--   1 root  wheel   1367  5 Apr 08:27 sslopt-vars.h
-rw-r--r--   1 root  wheel   2278  5 Apr 08:27 typelib.h

I see another /usr/local/mysql/include/mysql subfolder. 
ls -al  /usr/local/mysql/include/mysql/
total 312
drwxr-xr-x  25 root  wheel    850  5 Apr 10:23 .
drwxr-xr-x  45 root  wheel   1530  5 Apr 10:23 ..
-rw-r--r--   1 root  wheel    333  5 Apr 08:27 client_authentication.h
-rw-r--r--   1 root  wheel   5595  5 Apr 08:27 client_plugin.h
-rw-r--r--   1 root  wheel   1986  5 Apr 08:27 client_plugin.h.pp
-rw-r--r--   1 root  wheel   1198  5 Apr 08:27 get_password.h
-rw-r--r--   1 root  wheel   1387  5 Apr 08:27 innodb_priv.h
-rw-r--r--   1 root  wheel  23633  5 Apr 08:27 plugin.h
-rw-r--r--   1 root  wheel   3996  5 Apr 08:27 plugin_audit.h
-rw-r--r--   1 root  wheel  10174  5 Apr 08:27 plugin_audit.h.pp
-rw-r--r--   1 root  wheel   3409  5 Apr 08:27 plugin_auth.h
-rw-r--r--   1 root  wheel  10159  5 Apr 08:27 plugin_auth.h.pp
-rw-r--r--   1 root  wheel   4431  5 Apr 08:27 plugin_auth_common.h
-rw-r--r--   1 root  wheel   7589  5 Apr 08:27 plugin_ftparser.h
-rw-r--r--   1 root  wheel   9058  5 Apr 08:27 plugin_ftparser.h.pp
-rw-r--r--   1 root  wheel   1576  5 Apr 08:27 plugin_validate_password.h
drwxr-xr-x  10 root  wheel    340  5 Apr 10:23 psi
-rw-r--r--   1 root  wheel   1678  5 Apr 08:27 service_my_plugin_log.h
-rw-r--r--   1 root  wheel   3361  5 Apr 08:27 service_my_snprintf.h
-rw-r--r--   1 root  wheel   5348  5 Apr 08:27 service_mysql_string.h
-rw-r--r--   1 root  wheel   4379  5 Apr 08:27 service_thd_alloc.h
-rw-r--r--   1 root  wheel   3675  5 Apr 08:27 service_thd_wait.h
-rw-r--r--   1 root  wheel   1869  5 Apr 08:27 service_thread_scheduler.h
-rw-r--r--   1 root  wheel   1124  5 Apr 08:27 services.h
-rw-r--r--   1 root  wheel   5053  5 Apr 08:27 thread_pool_priv.h

Is it possible that the install somehow thinks it should use this 
subfolder? If so how to declare to the "gem install" to use 
/usr/local/mysql/include and not its subfolder ...include/mysql?

Dave
On Sunday, May 12, 2013 2:51:40 PM UTC-4, Hassan Schroeder wrote:
>
> On Sun, May 12, 2013 at 10:34 AM, david bone <bone_...@mac.com<javascript:>> 
> wrote: 
>
> > What/how suggestions appreciated to get this mysql2 gem installed so 
> that i 
> > can use rails/ruby against this database? 
>
> > checking for mysql.h... no 
> > checking for mysql/mysql.h... no 
> > ----- 
> > mysql.h is missing.  please check your installation of mysql and try 
> again. 
>
> The error message is pretty clear. Did your MySQL DMG installation 
> include header files? Can you find mysql.h on your system? 
>
> -- 
> Hassan Schroeder ------------------------ hassan.s...@gmail.com<javascript:> 
> http://about.me/hassanschroeder 
> twitter: @hassan 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/Mb2XJI2p7fEJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to