{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/88dcee2058182f1e7427a5b9ae137039?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"88dcee2058182f1e7427a5b9ae137039","url":"https://api.github.com/users/anilk914","login":"anilk914","id":710950},"milestone":null,"assignee":null,"updated_at":"2011-11-13T20:44:31Z","labels":[],"closed_at":null,"comments":1,"url":"https://api.github.com/repos/brianmario/mysql2/issues/220","body":"Hi,\r\n\r\nI am trying to install mysql2 gem with below and \r\n\r\ngem install mysql2 -- --with-opt-dir=/opt/mysql/mysql --with-opt-include=/opt/mysql/mysql/include --with-opt-lib=/opt/mysql/mysql/lib\r\n\r\nOnce I received error I tried to edit extconf.rb file with hard path but not working. Still stuck with the below error.\r\n\r\nI have installed package from mysql and mysql.h file exist in\r\n/opt/mysql/mysql/include/mysql.h\r\n/usr/include/mysql/mysql.h (symlink to above)\r\n\r\nI really appreciate help on this.\r\nThanks,\r\nAnil.\r\n\r\nchecking for rb_thread_blocking_region()... yes\r\nchecking for mysql.h... no\r\nchecking for mysql/mysql.h... no\r\n-----\r\nmysql.h is missing.  please check your installation of mysql and try again.\r\n-----\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of\r\nnecessary libraries and/or headers.  Check the mkmf.log file for more\r\ndetails.  You may need configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --with-opt-include=${opt-dir}/include\r\n        --with-opt-lib=${opt-dir}/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=/export/home/maftool/.rvm/rubies/ruby-1.9.2-p290/bin/ruby\r\n        --with-mysql-config\r\n        --without-mysql-config\r\n","html_url":"https://github.com/brianmario/mysql2/issues/220","title":"Missing mysql.h on solaris","number":220,"id":2176704,"created_at":"2011-11-08T17:12:20Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/fd01f6f0536dbf9dda01a0ed3f27ac31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fd01f6f0536dbf9dda01a0ed3f27ac31","url":"https://api.github.com/users/jfqd","login":"jfqd","id":146664},"updated_at":"2011-11-13T20:44:31Z","url":"https://api.github.com/repos/brianmario/mysql2/issues/comments/2724298","body":"Do you have mysql development files installed? If you use opencsw [1] just run\r\n\r\npkg-get install mysql_dev\r\npkg-get install mysql5client\r\n\r\n[1] http://www.opencsw.org/\r\n\r\nDoes it fix your issue?","id":2724298,"created_at":"2011-11-13T20:44:31Z"}}