{"id":768,"date":"2011-05-22T14:31:47","date_gmt":"2011-05-22T13:31:47","guid":{"rendered":"http:\/\/www.malcolmhardie.com\/weblogs\/angus\/?p=768"},"modified":"2025-02-01T03:04:14","modified_gmt":"2025-02-01T03:04:14","slug":"mysql-5-5-ruby-snow-leopard-mac-os-x-10-6","status":"publish","type":"post","link":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/2011\/05\/22\/mysql-5-5-ruby-snow-leopard-mac-os-x-10-6\/","title":{"rendered":"MySQL 5.5 + Ruby + Snow Leopard Mac OS X 10.6"},"content":{"rendered":"<p>The trick is that the library install path isn&#8217;t right in the gem bundle.<br \/>\nThe following commands fixed it for me:<\/p>\n<p><code>$ cd \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.8.1\/lib<br \/>\n$ sudo install_name_tool -change libmysqlclient.18.dylib \/usr\/local\/mysql\/lib\/libmysqlclient.18.dylib mysql_api.bundle<\/code><\/p>\n<p><code>$ cd \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.8.1\/ext<br \/>\n$ sudo install_name_tool -change libmysqlclient.18.dylib \/usr\/local\/mysql\/lib\/libmysqlclient.18.dylib <\/code>mysql_api\/<code>mysql_api.bundle<\/code><\/p>\n<p>The install name is set to the absolute path of the library that the bundle links to.<\/p>\n<p>Original source for the fix is here:<br \/>\n<a href=\"http:\/\/lightyearsoftware.com\/2011\/02\/mysql-5-5-on-mac-os-x\/\">http:\/\/lightyearsoftware.com\/2011\/02\/mysql-5-5-on-mac-os-x\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The trick is that the library install path isn&#8217;t right in the gem bundle. The following commands fixed it for me: $ cd \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.8.1\/lib $ sudo install_name_tool -change libmysqlclient.18.dylib \/usr\/local\/mysql\/lib\/libmysqlclient.18.dylib mysql_api.bundle $ cd \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.8.1\/ext $ sudo install_name_tool -change libmysqlclient.18.dylib \/usr\/local\/mysql\/lib\/libmysqlclient.18.dylib mysql_api\/mysql_api.bundle The install name is set to the absolute path of the library that the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":1,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"predecessor-version":[{"id":1340,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/768\/revisions\/1340"}],"wp:attachment":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}