Olexiy (Alexey) Prokhorenko likes to live in different places and blog about different things. Ruby, JRuby, Java, Javascript, Scala, Rails, Spring, Hibernate... just to name a few. And different aspects of product management and agile software development. On the other note, he also loves speed in form of flashy cars and sportbikes, so those topics may find their place here, too.

Thursday, November 12, 2009

Snow Leopard gives me a headache! (Ruby/MySQL/DBI)

So, needed to create tiny Ruby script which will work with MySQL via DBI. It almost ate my brain. Didn't want to work! But I can swear that it did work before (until I upgraded to Snow Leopard!). Found this link http://freaking.hilbrink.org/?p=7 and it happened to be my problem:

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

So easy and stupid :-(
Works now.

Posted via email from olexiy prokhorenko's blog

0 comments: