Hello
I'm attempting to install do_mysql onto a machine running Red Hat
Enterprise Linux 5.2 and it fails in it's attempt to locate the
my_config_i386.h file (see output, below). That file doesn't appear to
be part of this linux distro though it does contain:
/usr/include/mysql/my_config.h
/usr/include/mysql/my_config_x86_64.h
And the server is up-to-date with the following:
mysql.i386 5.0.58-1.el5.art
installed
mysql-connector-odbc.i386 3.51.12-2.2
installed
mysql-devel.i386 5.0.58-1.el5.art
installed
mysql-libs.i386 5.0.58-1.el5.art
installed
mysql-server.i386 5.0.58-1.el5.art
installed
Anyone have any suggestions about this? It's the last hurdle in
deploying our Merb app.
Cheers
Chris
------------------------------
ch...@dreambank ~]# gem install do_mysql
Building native extensions. This could take a while...
ERROR: Error installing do_mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install do_mysql
checking for mysql.h... yes
checking for main() in -lmysqlclient... yes
checking for mysql_query()... yes
checking for mysql_ssl_set()... yes
creating Makefile
make
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -
DHAVE_MYSQL_QUERY -DHAVE_MYSQL_SSL_SET -D_FILE_OFFSET_BITS=64 -I/usr/
include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -
D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-
aliasing -fwrapv -fPIC -g -O2 -Wall -c do_mysql_ext.c
In file included from /usr/include/mysql/my_global.h:83,
from do_mysql_ext.c:6:
/usr/include/mysql/my_config.h:15:28: error: my_config_i386.h: No such
file or directory
In file included from do_mysql_ext.c:6:
/usr/include/mysql/my_global.h:592: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'size_socket'
In file included from do_mysql_ext.c:6:
/usr/include/mysql/my_global.h:725:1: warning: "strtok_r" redefined
In file included from /usr/include/string.h:417,
from /usr/lib/ruby/1.8/i686-linux/ruby.h:44,
from do_mysql_ext.c:1:
/usr/include/bits/string2.h:1197:1: warning: this is the location of
the previous definition
make: *** [do_mysql_ext.o] Error 1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
do_mysql-0.9.11 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/do_mysql-0.9.11/ext/
do_mysql_ext/gem_make.out
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---