Created
September 26, 2011 13:44
-
-
Save shugo/1242255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building native extensions. This could take a while... | |
ERROR: Error installing mysql2: | |
ERROR: Failed to build gem native extension. | |
/home/shugo/local/bin/ruby-trunk extconf.rb | |
checking for rb_thread_blocking_region()... no | |
checking for mysql.h... yes | |
checking for errmsg.h... yes | |
checking for mysqld_error.h... yes | |
creating Makefile | |
make | |
compiling client.c | |
In file included from ./client.h:11, | |
from ./mysql2_ext.h:39, | |
from client.c:1: | |
/home/shugo/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14: warning: #warning rubysig.h is obsolete | |
In file included from ./mysql2_ext.h:39, | |
from client.c:1: | |
./client.h:13: error: redefinition of typedef ‘rb_unblock_function_t’ | |
/home/shugo/local/include/ruby-1.9.1/ruby/intern.h:824: note: previous declaration of ‘rb_unblock_function_t’ was here | |
./client.h:14: error: redefinition of typedef ‘rb_blocking_function_t’ | |
/home/shugo/local/include/ruby-1.9.1/ruby/intern.h:825: note: previous declaration of ‘rb_blocking_function_t’ was here | |
./client.h:16: error: static declaration of ‘rb_thread_blocking_region’ follows non-static declaration | |
/home/shugo/local/include/ruby-1.9.1/ruby/intern.h:828: note: previous declaration of ‘rb_thread_blocking_region’ was here | |
./client.h: In function ‘rb_thread_blocking_region’: | |
./client.h:23: warning: ‘rb_thread_blocking_region_begin’ is deprecated (declared at /home/shugo/local/include/ruby-1.9.1/ruby/backward/rubysig.h:31) | |
./client.h:25: warning: ‘rb_thread_blocking_region_end’ is deprecated (declared at /home/shugo/local/include/ruby-1.9.1/ruby/backward/rubysig.h:32) | |
client.c: In function ‘rb_raise_mysql2_error’: | |
client.c:94: warning: ISO C90 forbids mixed declarations and code | |
client.c: In function ‘do_query’: | |
client.c:374: warning: ‘rb_thread_select’ is deprecated (declared at /home/shugo/local/include/ruby-1.9.1/ruby/intern.h:393) | |
client.c: In function ‘rb_mysql_client_socket’: | |
client.c:576: warning: ISO C90 forbids mixed declarations and code | |
client.c: In function ‘set_connect_timeout’: | |
client.c:659: warning: passing argument 3 of ‘mysql_options’ from incompatible pointer type | |
/usr/include/mysql/mysql.h:531: note: expected ‘const char *’ but argument is of type ‘unsigned int *’ | |
make: *** [client.o] エラー 1 | |
Gem files will remain installed in /home/shugo/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.7 for inspection. | |
Results logged to /home/shugo/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.7/ext/mysql2/gem_make.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment