Structurally Sound Treehouse

just some more awesome

    • Edit
    • Delete
    • Tags
    • Autopost

    Installing the mysql gem with Ruby 1.9.2 on Snow Leopard

    On my system, I installed MySQL with installer downloaded from their site, not MacPorts, or Homebrew.

    So, MySQL is installed at this path:

    /usr/local/mysql-5.1.42-osx10.6-x86_64/

    I have a sym-link for that path at:

    /usr/local/mysql/

    The following command worked for me for installing the mysql gem.

    env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
    • 21 June 2010
    • Views
    • Permalink
    • Tweet
    • 0 responses
    • Like
    • Comment
  • Fred Lee's Space

    CTO/CIO. Ruby. Rails.

  • About Fred Lee

    CTO/CIO. Ruby. Rails.

  • Subscribe via RSS

    Archive

    2011 (21)
    June (3)
    May (5)
    April (5)
    March (2)
    February (3)
    January (3)
    2010 (27)
    November (2)
    October (1)
    September (2)
    August (3)
    July (2)
    June (3)
    May (3)
    April (5)
    February (4)
    January (2)
    2009 (89)
    December (7)
    November (6)
    October (4)
    September (10)
    August (5)
    July (6)
    June (1)
    May (3)
    April (7)
    March (5)
    February (12)
    January (23)
    2008 (12)
    December (12)
  • Follow Me

      TwitterFlickr

Theme created for Posterous by Obox