mysql-ruby icon indicating copy to clipboard operation
mysql-ruby copied to clipboard

Compiling error

Open antage opened this issue 16 years ago • 1 comments

/opt/ruby-1.9.1-p129/bin/ruby extconf.rb install mysql-ruby-2.8.1.gem
Trying to detect MySQL configuration with mysql_config command...
Succeeded to detect MySQL configuration with mysql_config command.
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
creating Makefile

make
gcc -I. -I/opt/ruby-1.9.1-p129/include/ruby-1.9.1/x86_64-linux -I/opt/ruby-1.9.1-p129/include/ruby-1.9.1/ruby/backward -I/opt/ruby-1.9.1-p129/include/ruby-1.9.1 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_RB_STR_SET_LEN -DHAVE_MYSQL_H    -I/usr/include/mysql  -DBIG_JOINS=1 -fPIC -fno-strict-aliasing -fPIC  -O2 -g -Wall -Wno-parentheses  -o mysql.o -c mysql.c
In file included from /usr/include/stdlib.h:320,
                 from /opt/ruby-1.9.1-p129/include/ruby-1.9.1/ruby/ruby.h:50,
                 from /opt/ruby-1.9.1-p129/include/ruby-1.9.1/ruby.h:32,
                 from mysql.c:6:
/usr/include/sys/types.h:151: error: duplicate 'unsigned'
make: *** [mysql.o] Error 1

Ubuntu 9.04, ruby 1.9.1p129

antage avatar Aug 06 '09 00:08 antage

Patch: antage@57b351b73d8f5c8124abe82b940b1acdbde9a0e9

antage avatar Aug 06 '09 00:08 antage