Advertisement
Guest User

mysql2 gem failure

a guest
Jun 25th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. Anthonys-MacBook-Pro:PowerCtrl anthonyhill$ sudo env ARCHFLAGS="I/usr/local/mysql-5.6.12-osx10.7-x86_64/include -arch x86_64" gem install mysql2 -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include
  2. Password:
  3. Building native extensions with: '--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include'
  4. This could take a while...
  5. ERROR: Error installing mysql2:
  6. ERROR: Failed to build gem native extension.
  7.  
  8. /Users/anthonyhill/.rbenv/versions/2.0.0-p195/bin/ruby extconf.rb --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include
  9. checking for rb_thread_blocking_region()... yes
  10. checking for rb_wait_for_single_fd()... yes
  11. checking for mysql.h... no
  12. checking for mysql/mysql.h... no
  13. -----
  14. mysql.h is missing. please check your installation of mysql and try again.
  15. -----
  16. *** extconf.rb failed ***
  17. Could not create Makefile due to some reason, probably lack of necessary
  18. libraries and/or headers. Check the mkmf.log file for more details. You may
  19. need configuration options.
  20.  
  21. Provided configuration options:
  22. --with-opt-dir
  23. --without-opt-dir
  24. --with-opt-include
  25. --without-opt-include=${opt-dir}/include
  26. --with-opt-lib
  27. --without-opt-lib=${opt-dir}/lib
  28. --with-make-prog
  29. --without-make-prog
  30. --srcdir=.
  31. --curdir
  32. --ruby=/Users/anthonyhill/.rbenv/versions/2.0.0-p195/bin/ruby
  33. --with-mysql-config
  34. --without-mysql-config
  35.  
  36.  
  37. Gem files will remain installed in /Users/anthonyhill/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11 for inspection.
  38. Results logged to /Users/anthonyhill/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement