Advertisement
Guest User

mysql2 install fail

a guest
Nov 17th, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. bash-3.2$ sudo gem install mysql2
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing mysql2:
  4. ERROR: Failed to build gem native extension.
  5.  
  6. /Users/slim/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb
  7. checking for rb_thread_blocking_region()... yes
  8. checking for rb_wait_for_single_fd()... yes
  9. checking for mysql.h... yes
  10. checking for errmsg.h... yes
  11. checking for mysqld_error.h... yes
  12. creating Makefile
  13.  
  14. make
  15. compiling client.c
  16. In file included from /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby.h:32,
  17. from ./mysql2_ext.h:8,
  18. from client.c:1:
  19. /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby/ruby.h:105: error: size of array ‘ruby_check_sizeof_long’ is negative
  20. /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby/ruby.h:109: error: size of array ‘ruby_check_sizeof_voidp’ is negative
  21. In file included from /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby/intern.h:34,
  22. from /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby/ruby.h:1361,
  23. from /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby.h:32,
  24. from ./mysql2_ext.h:8,
  25. from client.c:1:
  26. /Users/slim/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/ruby/st.h:67: error: size of array ‘st_check_for_sizeof_st_index_t’ is negative
  27. client.c: In function ‘rb_raise_mysql2_error’:
  28. client.c:96: warning: ISO C90 forbids mixed declarations and code
  29. client.c: In function ‘rb_mysql_client_socket’:
  30. client.c:582: warning: ISO C90 forbids mixed declarations and code
  31. make: *** [client.o] Error 1
  32.  
  33.  
  34. Gem files will remain installed in /Users/slim/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mysql2-0.3.10 for inspection.
  35. Results logged to /Users/slim/.rvm/rubies/ruby-1.9.3-head/lib/ruby/gems/1.9.1/gems/mysql2-0.3.10/ext/mysql2/gem_make.out
  36. bash-3.2$
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement