brianmario/mysql2 — Issue #238: Solaris 11 MySQL binary uses /usr/mysql as main directory
Author: GarthSnyder
Created: 2012-01-16 22:14:56+00:00
State: open

Oracle's off-the-shelf MySQL package uses /usr/mysql as the top-level directory. This requires use of the --with-mysql-dir=/usr/mysql installation option to install the gem, which seems to confuse some people.

This directory (/usr/mysql) could probably be included in the default search list in extconf.rb without repercussions. The diff is:

index 388520b..c472cf5 100644
--- a/ext/mysql2/extconf.rb
+++ b/ext/mysql2/extconf.rb
@@ -17,6 +17,7 @@ dirs = ENV['PATH'].split(File::PATH_SEPARATOR) + %w[
/opt/local/mysql
/opt/local/lib/mysql5
/usr
+ /usr/mysql
/usr/local
/usr/local/mysql
/usr/local/mysql-*