Skip to content

Failed to build native extension on RedHat RE4 with mysql 4.1 #109

@shanlalit

Description

@shanlalit

We're running REE 1.8.7 2010.02 on RedHat RE4 with mysql 4.1. A Rails 2.3.x application is working fine with mysql gem.

mysql2 gem installation is failing -

gem install mysql2 -- --with-mysql-config='/usr/bin/mysql_config'

Error:
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.

/opt/ruby-enterprise-1.8.7-2010.02/bin/ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config
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
gcc -I. -I. -I/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H  -D_FILE_OFFSET_BITS=64  -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fPIC -g -O2   -Wall -funroll-loops  -c result.c
In file included from ./mysql2_ext.h:29,
                 from result.c:1:
./client.h:41:7: warning: no newline at end of file
result.c: In function `rb_mysql_result_fetch_row':
result.c:135: error: `MYSQL_TYPE_BIT' undeclared (first use in this function)
result.c:135: error: (Each undeclared identifier is reported only once
result.c:135: error: for each function it appears in.)
result.c:151: error: `MYSQL_TYPE_NEWDECIMAL' undeclared (first use in this function)
result.c:242: error: `MYSQL_TYPE_VARCHAR' undeclared (first use in this function)
make: *** [result.o] Error 1


Gem files will remain installed in /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/mysql2-0.2.6 for inspection.
Results logged to /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/mysql2-0.2.6/ext/mysql2/gem_make.out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions