Skip to content

Instantly share code, notes, and snippets.

@boffbowsh
Created July 10, 2013 12:58
Show Gist options
  • Select an option

  • Save boffbowsh/5966079 to your computer and use it in GitHub Desktop.

Select an option

Save boffbowsh/5966079 to your computer and use it in GitHub Desktop.
pbowsher ~ $ rbenv version
1.9.3-p327 (set by RBENV_VERSION environment variable)
pbowsher ~ $ mysql_config
Usage: /usr/local/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/Cellar/mysql/5.6.12/include -Wno-null-conversion -Os -g -fno-strict-aliasing]
--cxxflags [-I/usr/local/Cellar/mysql/5.6.12/include -Wno-null-conversion -Os -g -fno-strict-aliasing]
--include [-I/usr/local/Cellar/mysql/5.6.12/include]
--libs [-L/usr/local/Cellar/mysql/5.6.12/lib -lmysqlclient]
--libs_r [-L/usr/local/Cellar/mysql/5.6.12/lib -lmysqlclient_r]
--plugindir [/usr/local/Cellar/mysql/5.6.12/lib/plugin]
--socket [/tmp/mysql.sock]
--port [0]
--version [5.6.12]
--libmysqld-libs [-L/usr/local/Cellar/mysql/5.6.12/lib -lmysqld]
--variable=VAR VAR is one of:
pkgincludedir [/usr/local/Cellar/mysql/5.6.12/include]
pkglibdir [/usr/local/Cellar/mysql/5.6.12/lib]
plugindir [/usr/local/Cellar/mysql/5.6.12/lib/plugin]
pbowsher ~ $ ls /usr/local/Cellar/mysql/5.6.12/include
big_endian.h m_ctype.h my_dir.h mysql mysqld_error.h sslopt-longopts.h
byte_order_generic.h m_string.h my_getopt.h mysql.h plugin.h sslopt-vars.h
byte_order_generic_x86.h my_alloc.h my_global.h mysql_com.h plugin_audit.h typelib.h
byte_order_generic_x86_64.h my_attribute.h my_list.h mysql_com_server.h plugin_ftparser.h
decimal.h my_byteorder.h my_net.h mysql_embed.h plugin_validate_password.h
errmsg.h my_compiler.h my_pthread.h mysql_time.h sql_common.h
keycache.h my_config.h my_sys.h mysql_version.h sql_state.h
little_endian.h my_dbug.h my_xml.h mysqld_ername.h sslopt-case.h
pbowsher ~ $ gem install mysql2 -v '0.3.10'
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/pbowsher/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/pbowsher/.rbenv/versions/1.9.3-p327/bin/ruby
--with-mysql-config
--without-mysql-config
Gem files will remain installed in /Users/pbowsher/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/mysql2-0.3.10 for inspection.
Results logged to /Users/pbowsher/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/mysql2-0.3.10/ext/mysql2/gem_make.out
pbowsher ~ $ gem install mysql2 -v '0.3.10' -- --with-mysql-config=/usr/local/bin/mysql_config
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/pbowsher/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb --with-mysql-config=/usr/local/bin/mysql_config
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/pbowsher/.rbenv/versions/1.9.3-p327/bin/ruby
--with-mysql-config
Gem files will remain installed in /Users/pbowsher/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/mysql2-0.3.10 for inspection.
Results logged to /Users/pbowsher/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/mysql2-0.3.10/ext/mysql2/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment