Actually, doing more research and an strace on the process I found the problem.
Looking in the wrong place for the location of the library, I added my mysql lib directory to ld.so.conf/mysql.conf config file and it fixed it. Jean Bombeur wrote: > Anybody still has the issue? > > I have been using jruby for a while but today I was trying to setup > using the last version of ruby 1.9 and rails 2.3.4 and I got hit with > that. > > Also running centos and tried the ARCHFLAGS trick with no success. > > > Pishty Ags wrote: >> Evan Green wrote: >>> This didn't seem to fix the error for me. I still get 'uninitialized >>> constant MysqlCompat::MysqlRes' >>> >>> >>> Kyle Fox wrote: >>>> To fix this, specify ARCHFLAGS when you install the 'mysql' gem: >>>> >>>> sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql- >>>> config=/usr/local/mysql/bin/mysql_config >>>> >>>> On Aug 27, 12:07�pm, Caleb Cullen <[email protected]> >>> >>> >>> cheers, >> >> on my Centos Machine, i had to install mysql-devel.x86_64 first, then i >> ran the command: >> >> env ARCHFLAGS="-arch x86_64" gem install mysql -- >> --with-mysql-config=/usr/lib64/mysql/mysql_config >> >> which did the trick. >> >> thanks Kyle -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

