Guyren,
I had a problem installing the mysql gem after a Snow Leopard upgrade. I 
was getting an uninitialized mysql constant error. So, not your OS and a 
slightly different error I know. 

Anyway my problem was that I had previously done a "gem install" and had 
the mysql gem installed in /Users/<user>/.gem as well as on the system 
in /usr. Neither "gem uninstall" or "sudo gem uninstall" would get rid 
of the user copy, even though it showed up via "gem list". When I 
deleted it manually I was able to proceed with a fresh "sudo gem install 
..." and everything compiled.....

When I was researching my problem I came across some people who had 
compile problems because the mysql library files were in 
/usr/local/mysql/lib instead of /usr/local/mysql/lib/mysql.  One of your 
errors was "checking for mysql/mysql.h... no" so it may be related.
This didn't fix anything for me but that issue can be solved by creating 
a link in /usr/local/mysql/lib for mysql:
"sudo ln -s . mysql"

Lastly, and you've probably done this already, but in Ubuntu you need to 
install the "build-essential" package to get the c/c++ header files for 
building native extensions. Unlikely to be your problem since it's mysql 
specific header info but in CentOS you might need to do:
yum groupinstall "Development Tools"
or maybe
yum install gcc gcc-c++ kernel-devel
or maybe
yum install buildsys-build

Hope that helps.
Regards,
Kerry


Guyren G Howe wrote:
> On Oct 30, 2009, at 13:44 , Josh Lubaway wrote:
>
>> Not sure about CentOS but whenever I get an extconf.rb error in 
>> Ubuntu the fix is:
>>
>> sudo apt-get install ruby<version>-dev
>>
>> Again not sure if that will solve your problem on CentOS just 
>> throwing it out there (thinking out loud).
>
> Thanks, but I have ruby-devel installed.
>
>> On Thu, Oct 29, 2009 at 11:34 PM, Guyren G Howe <[email protected] 
>> <mailto:[email protected]>> wrote:
>>
>>
>>     On Oct 29, 2009, at 9:58 , Jason King wrote:
>>
>>     > It will never work if it can't find mysql.h  I'm wondering if you're
>>     > pointing to the right mysql_config.
>>     >
>>     > Run:
>>     > /usr/bin/mysql_config --include
>>     >
>>     > Then see if there's a mysql.h in the directory that is returned.  If
>>     > not then my guess is that mysql-devel installed a different
>>     > mysql_config and you need to point to that so that it references the
>>     > right include location for the headers.
>>
>
> I should add that I have tried both mysql_config files that I have, 
> and I can't build with either of them.
>
> Regards,
>
> Guyren G Howe
> Relevant Logic LLC
>
> guyren-at-relevantlogic.com <http://guyren-at-relevantlogic.com> 
> ~ http://relevantlogic.com ~ +1 512 784 3178
>
> Ruby/Rails,  REALbasic, PHP programming
> PostgreSQL, MySQL database design and consulting
> Technical writing and training
>
> Read my book, Real OOP with REALbasic: 
> <http://relevantlogic.com/oop-book/about-the-oop-book.php>
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to