Hi Glenn,

This should already be fixed with the current code in DO's master  
branch. I've checked that it works both on Leopard, non 64 bit capable  
machines with Snow Leopard and 64-bit capable machines with Snow  
Leopard. If you could confirm this, that would be great :). You  
shouldn't need to provide any flags with this version (if you make  
sure mysql_config is available in PATH).

-- 
Regards,

Dirkjan Bussink

On 4 Sep 2009, at 20:42, Glenn Rempe wrote:

>
> The formatting on that was crappy, here is a gist:
>
> http://gist.github.com/181012
>
> On Sep 4, 11:40 am, Glenn Rempe <[email protected]> wrote:
>> Hi, Just to document this for future google searches.
>>
>> I was seeing the following errors on a clean install of Snow Leopard
>> with 64 bit Ruby 1.8.7 and 64 bit MySQL installed from the 10.5 64  
>> bit
>> installer package on the MySQL site:
>>
>> LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/do_mysql-0.9.12/lib/
>> do_mysql_ext.bundle, 9): no suitable image found. Did find: /Library/
>> Ruby/Gems/1.8/gems/do_mysql-0.9.12/lib/do_mysql_ext.bundle: mach-o,
>> but wrong architecture - /Library/Ruby/Gems/1.8/gems/do_mysql-0.9.12/
>> lib/do_mysql_ext.bundle
>>
>> I was able to resolve by re-installing the mysql and do_mysql gems
>> with the following params.  This should likely be added to the
>> documentation but I am not sure of the best location.
>>
>> sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-
>> config=/usr/local/mysql/bin/mysql_config
>> sudo env ARCHFLAGS="-arch x86_64" gem install do_mysql -- --with- 
>> mysql-
>> config=/usr/local/mysql/bin/mysql_config
>>
>> Cheers,
>>
>> Glenn
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to