fixing do_mysql hanging or install problems on mac os x

Just a quick tip:

If you’re having trouble getting do_mysql to install on Mac OS X. Try the following:

$ locate mysql_config

The directory /usr/local/mysql above is your mysql directory. Then try to install do_mysql with the following command (split for readability):

$ gem install do_mysql -- \
   --with-mysql-dir="/usr/local/mysql/" \ 

This solution was found here. I experienced the problem while trying to get merb to run with datamapper on mysql.

  • Reddit
  • Technorati
  • Twitter
  • Facebook
  • Google Bookmarks
  • HackerNews
  • PDF
  • RSS
This entry was posted in tips and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Kyle

    I had to add the mysql bin path to my PATH as well to get this to compile. Like so:

    export PATH=”$PATH:/usr/local/mysql/bin/”

    You can find out what yours is by doing:
    locate mysql_config