On Tue, Nov 25, 2008 at 6:22 AM, asartalo <[EMAIL PROTECTED]> wrote: > > Thanks Luis, > > I tried to reply to your message yesterday but It seems that it didn't > get sent for some reason. I thanked you on my first reply 'cause your > response came quickly. :) > >> Did you uninstalled it before installed it again on top? I'm asking >> this since the first time it executed extconf since it lacks the >> proper makefile. >> >> But the second time could have used the first one created. > > Yes I did. > >> The problem is that that the sudoer installation of do_mysql will link >> to the headers files and libs that are not part of your xampp >> installation, and will fail. >> >> Try to locate where in xampp installation is mysql_config (or >> mysql_config5) and add it to your $PATH, in that way, do_mysql will >> use it instead of requiring you supply the configure options every >> time. > > The mysql_config file is located at /opt/lampp/bin and its already > added to my $PATH. :( > > By the way, here's the error message I get when I try to install > do_mysql (no sudo): > > 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/ruby1.8 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 > cc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_MYSQL_H - > DHAVE_MYSQL_QUERY -DHAVE_MYSQL_SSL_SET -D_FILE_OFFSET_BITS=64 -I/opt/ > lampp/include/mysql -I/opt/lampp/include -L/opt/lampp/lib -Wl,--rpath > -Wl,/opt/lampp/lib -fPIC -fno-strict-aliasing -g -g -O2 -fPIC - > Wall -c do_mysql_ext.c > In file included from do_mysql_ext.c:6: > /opt/lampp/include/mysql/my_global.h:361:24: error: asm/atomic.h: No > such file or directory > make: *** [do_mysql_ext.o] Error 1 > >
Looks like some of the include files from lampp package are missing. "asm/atomic.h" doesn't ring me a bell, but looks like is a mysql bug? http://bugs.mysql.com/bug.php?id=28456 I'll suggest get rid of lampp mysql and switch to the distro based one. The build process try to be clever, but sometimes developers don't write clever code to handle all those unknown situations (even worse, the errors messages doesn't help a bit). -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
