On Mon, Mar 2, 2009 at 7:52 AM, Robert Walker <
[email protected]> wrote:

>
> Ian Piper wrote:
> > Then when I run sudo gem install mysql I see this:
>
> On Mac OS X you can't just simply run sudo gem install mysql.  You must
> use the instructions that are specific to Mac OS X.
>
> This really has to do with the nature of Mac OS X Leopard and is
> somewhat unrelated to Rails or Ruby.
>
> Mac OS X 10.5 (Leopard) builds universal binaries by default. However,
> most installations of MySQL on Mac OS 10.5 are Intel only so you must
> tell the gcc compiler to build for your specific platform: i386 or ppc.
>
> Here is the command to use to install the mysql gem for Intel:
>
> sudo env ARCHFLAGS="-arch i386" gem install mysql
> --with-mysql-config=/usr/local/mysql/bin/mysql_config
>
> Note: That is all one line.
>
> However, you may still have an issue with one of the dynamic libraries.
> This is where I had an issue with my install.
>
> Here is the fix:
>
> sudo install_name_tool -change
> /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
> /usr/local/mysql/libmysqlclient.15.dylib
> /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle
>
> Note: You may need to confirm the paths in that command, because some of
> the blogs I tried didn't have it correct and I'm not sure if this one is
> one of those. So make sure the libmysqlclient.15.dylib is actually in
> the location specified above. Same goes for the mysql.bundle path.
> --
> Posted via http://www.ruby-forum.com/.
>

Hi, I have both Intel and G5 Macs and I was able to simply install MySQL
without
requiring any architecture flags.

-Conrad


>
> >
>

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

Reply via email to