Darwinports does some weird shtuff. I think its highly convenient, but I don’t have time to debug the myriad of issues that crop up from multiple ruby and mysql installations. So, I wiped my Darwinports /opt folder, and started anew, with native versions of everything.

Since mysql’s header libs don’t include the proper type definitions to build the mysql gem, just add it to the mysql header, and the gem will compile just fine.

In /usr/local/mysql/include/mysql.h

Put this near the top, preferably after the redundancy-check in the preprocessor directives.


#define ulong unsigned long

Then install the gem with the dependencies like so..


gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Happy Compiling!

* Update

The Cat is out of the bag (Leopard) and a new set of issues has cropped up. Check out this wiki for some very useful commands to install the mysql gem easily

 

Michael Cerna Chicago-based Rails Developer and Avid Musician. More ...

Search

Categories

  • Home (15)
  • Rails Plugins (5)
  • Pages (9)
  • Archives

    Tags

    BlogRoll