From: Urban Hafner Date: 2001-07-27T03:01:06+09:00 Subject: [ruby-talk:18584] Re: Which database should I use? Michael Neumann wrote: >Where is your problem, exactly? My problem is that I can't compile the extension for mysql: urban@debian:~/Programmieren/Ruby/mysql-ruby-2.3.2a$ ruby extconf.rb creating Makefile urban@debian:~/Programmieren/Ruby/mysql-ruby-2.3.2a$ make gcc -fPIC -g -O2 /usr/include -I/usr/local/lib/ruby/1.7/i586-linux -I/usr/local/include -c mysql.c mysql.c:12: warning: `Qtrue' redefined /usr/local/lib/ruby/1.7/i586-linux/ruby.h:142: warning: this is the location of the previous definition mysql.c:13: warning: `Qfalse' redefined /usr/local/lib/ruby/1.7/i586-linux/ruby.h:141: warning: this is the location of the previous definition mysql.c: In function `free_mysql': mysql.c:60: `TRUE' undeclared (first use in this function) mysql.c:60: (Each undeclared identifier is reported only once mysql.c:60: for each function it appears in.) mysql.c: In function `free_mysqlres': mysql.c:67: `FALSE' undeclared (first use in this function) mysql.c: In function `mysql_raise': mysql.c:78: too few arguments to function `rb_raise' mysql.c: In function `mysqlres2obj': mysql.c:87: `FALSE' undeclared (first use in this function) mysql.c: In function `init': mysql.c:125: `FALSE' undeclared (first use in this function) mysql.c:126: `TRUE' undeclared (first use in this function) mysql.c: In function `real_connect': mysql.c:169: `TRUE' undeclared (first use in this function) mysql.c: In function `my_close': mysql.c:282: `FALSE' undeclared (first use in this function) mysql.c: In function `query': mysql.c:517: `FALSE' undeclared (first use in this function) mysql.c: In function `query_with_result': mysql.c:527: `TRUE' undeclared (first use in this function) mysql.c:527: `FALSE' undeclared (first use in this function) mysql.c: In function `check_free': mysql.c:551: `TRUE' undeclared (first use in this function) mysql.c: In function `fetch_hash2': mysql.c:670: `FALSE' undeclared (first use in this function) mysql.c: In function `fetch_hash': mysql.c:689: `FALSE' undeclared (first use in this function) mysql.c: In function `res_free': mysql.c:713: `TRUE' undeclared (first use in this function) mysql.c: In function `each_hash': mysql.c:764: `FALSE' undeclared (first use in this function) mysql.c: In function `Init_mysql': mysql.c:833: `cObject' undeclared (first use in this function) make: *** [mysql.o] Error 1 urban@debian:~/Programmieren/Ruby/mysql-ruby-2.3.2a$ cat extconf.rb require 'mkmf' #MYSQLDIR = "/usr/local" $CFLAGS = "/usr/include" # because of /usr/local/mysql $LDFLAGS = "/usr/lib" # bcause of libmysqlclient.{a,so.6.0.0,la,so} $libs = "-lmysqlclient" create_makefile("mysql") My ruby version: urban@debian:~/Programmieren/Ruby/mysql-ruby-2.3.2a$ ruby -v ruby 1.7.1 (2001-07-15) [i586-linux]