Ok, I think I'm getting closer (the silence is instructive ;). After removing that line and running make the compiler produced:
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 do_mysql_ext.c:42: warning: 'ID_NEW_RATIONAL' defined but not used gcc -shared -o do_mysql_ext.so do_mysql_ext.o -L. -L/usr/lib -Wl,-R/ usr/lib -L. -rdynamic -Wl,-export-dynamic -lmysqlclient -rdynamic - L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl - lcrypto -ldl -lcrypt -lm -lc and the directory now contains: -rwxr-xr-x 1 root root 25405 Jan 28 19:20 do_mysql_ext.c -rwxr-xr-x 1 root root 54786 Jan 28 19:20 do_mysql_ext.so -rw-r--r-- 1 root root 2035 Jan 28 19:20 extconf.rb -rw-r--r-- 1 root root 1333 Jan 28 19:20 gem_make.out -rw-r--r-- 1 root root 4237 Jan 28 19:20 Makefile -rw-r--r-- 1 root root 5193 Jan 28 19:20 mkmf.log which looks promising. I'm not clear on what to do with those now however. Thoughts? Cheers Chris On Jan 28, 2:32 am, dbussink <[email protected]> wrote: > On Jan 28, 1:24 am, Chris Cummer <[email protected]> wrote: > > > 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 > > Could you clone the DO repository and remove the my_global.h include > in do_mysql/ext/do_mysql_ext/do_mysql_ext.c > > Does the compilation work in that case? It still seems to compile here > when removing that option, so I guess this should fix it. > > -- > Regards, > > Dirkjan Bussink --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
