Install MySQL gem on Leopard
sudo bash -c "ARCHFLAGS='-arch i386' gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config"
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
sudo bash -c "ARCHFLAGS='-arch i386' gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config"
=========== WARNING =========== You are building this extension on OS X without setting the ARCHFLAGS environment variable, and PostgreSQL does not appear to have been built as a universal binary. If you are seeing this message, that means that the build will probably fail. Try setting the environment variable ARCHFLAGS to '-arch i386' before building. For example: (in bash) $ export ARCHFLAGS='-arch i386' (in tcsh) $ setenv ARCHFLAGS '-arch i386' Then try building again. ===================================
sudo env ARCHFLAGS="-arch i386" gem install postgres
gem list | egrep -v "^( |$)"
$ gem list | egrep -v "^ |^$" *** LOCAL GEMS *** actionmailer (1.2.1, 1.2.0, 1.1.5) actionpack (1.12.1, 1.12.0, 1.11.2) actionwebservice (1.1.2, 1.1.1, 1.1.0, 1.0.0) activerecord (1.14.2, 1.14.1, 1.14.0, 1.13.2) activesupport (1.3.1, 1.3.0, 1.2.5) BlueCloth (1.0.0) capistrano (1.1.0) diff-lcs (1.1.2)