{"id":256,"date":"2009-01-09T15:58:55","date_gmt":"2009-01-09T20:58:55","guid":{"rendered":"https:\/\/dillernet.com\/apple\/?p=256"},"modified":"2009-01-09T16:49:31","modified_gmt":"2009-01-09T21:49:31","slug":"mysql-gem-for-osx-lepard-ruby","status":"publish","type":"post","link":"https:\/\/dillernet.com\/apple\/2009\/01\/09\/mysql-gem-for-osx-lepard-ruby\/","title":{"rendered":"Mysql Gem for OSX Lepard Ruby"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2009\/01\/ruby-img.jpg?resize=113%2C113&#038;ssl=1\" alt=\"ruby_img.jpg\" border=\"0\" width=\"113\" height=\"113\" align=\"left\" \/>Want to build the mysql gem for the system&#8217;s Ruby and use the mysql binary you just installed from mysql.org?<\/p>\n<p>Easy, has <a href=\"http:\/\/wonko.com\/post\/how-to-install-the-mysqlruby-gem-on-mac-os-x-leopard\">wonko.com<\/a> has the answer and it worked perfectly! I love Google.<\/p>\n<p><\/p>\n<pre>airbot:~ [504]$ sudo env ARCHFLAGS=\"-arch i386\" gem install mysql -- \\\n>   --with-mysql-dir=\/usr\/local\/mysql --with-mysql-lib=\/usr\/local\/mysql\/lib \\\n>   --with-mysql-include=\/usr\/local\/mysql\/include\nPassword:\nBulk updating Gem source index for: http:\/\/gems.rubyforge.org\nBuilding native extensions.  This could take a while...\nSuccessfully installed mysql-2.7\n1 gem installed\n<\/pre>\n<p>And your off&#8230;..<\/p>\n<p><strong>Update<\/strong>: don&#8217;t forget to add the gems require at the top of your ruby scripts:<\/p>\n<pre>require 'rubygems'<\/pre>\n<p>This will get rid of the <\/p>\n<pre>in `require': no such file to load -- mysql (LoadError)<\/pre>\n<p>errors. On my linux machine, mysql was not installed as a gem so I didn&#8217;t have the require in my scripts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to build the mysql gem for the system&#8217;s Ruby and use the mysql binary you just installed from mysql.org? Easy, has wonko.com has the answer and it worked perfectly! I love Google. airbot:~ [504]$ sudo env ARCHFLAGS=&#8221;-arch i386&#8243; gem install mysql &#8212; \\ > &#8211;with-mysql-dir=\/usr\/local\/mysql &#8211;with-mysql-lib=\/usr\/local\/mysql\/lib \\ > &#8211;with-mysql-include=\/usr\/local\/mysql\/include Password: Bulk updating Gem source [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[26,6],"tags":[],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-coding","category-tech"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3PE01-48","jetpack-related-posts":[{"id":200,"url":"https:\/\/dillernet.com\/apple\/2007\/11\/11\/mysql-python-driver-building-on-105\/","url_meta":{"origin":256,"position":0},"title":"MySQL Python driver building (breaking?) on 10.5","author":"dillera","date":"November 11, 2007","format":false,"excerpt":"Trying to get my mysql environment setup on 10.5 I ran head-long into the mysql python 1.22 drivers breaking with xcode 3.from _mysql.c:40: \/usr\/include\/sys\/types.h:92: error: duplicate \u00e2\u20ac\u02dcunsigned\u00e2\u20ac\u2122 \/usr\/include\/sys\/types.h:92: error: two or more data types in declaration specifiers error: command 'gcc' failed with exit status 1 The fixed is coved over\u2026","rel":"","context":"In &quot;Mac&quot;","block_context":{"text":"Mac","link":"https:\/\/dillernet.com\/apple\/category\/mac\/"},"img":{"alt_text":"mysql_icon.png","src":"https:\/\/i0.wp.com\/dillernet.com\/apple\/wp-content\/uploads\/2007\/11\/mysql-icon.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":310,"url":"https:\/\/dillernet.com\/apple\/2010\/01\/17\/blogtk-using-in-karmic\/","url_meta":{"origin":256,"position":1},"title":"BloGTK &#8211; Using in Karmic","author":"dillera","date":"January 17, 2010","format":false,"excerpt":"A nice GTK application for blogging is BloGTK. It's written in python and it's fast and a decent replacement for MarsEdit when not on my Mac (not that there are many choices for GTK blogging apps). The 2.0 release is available on LaunchPad, but it requires a few extra python\u2026","rel":"","context":"In &quot;karmic&quot;","block_context":{"text":"karmic","link":"https:\/\/dillernet.com\/apple\/category\/karmic\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":87,"url":"https:\/\/dillernet.com\/apple\/2006\/01\/01\/what-happened-in-51\/","url_meta":{"origin":256,"position":2},"title":"What Happened in .51?","author":"admin","date":"January 1, 2006","format":false,"excerpt":"Issues with 51 Ok, since I've flashed 51 onto my 770, all hell has broken loose. So far I've had these issues: News Reader won't load (and it constantly refreshes) Sporadic reboots Out of Memory errors (I never had them before) Using swapon causes immediate out of memory and or\u2026","rel":"","context":"In &quot;Nokia 770&quot;","block_context":{"text":"Nokia 770","link":"https:\/\/dillernet.com\/apple\/category\/nokia-770\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":88,"url":"https:\/\/dillernet.com\/apple\/2006\/01\/01\/recovering-from-a-firmware-flash\/","url_meta":{"origin":256,"position":3},"title":"Recovering from a Firmware Flash","author":"admin","date":"January 1, 2006","format":false,"excerpt":"So with new firmware images coming from Nokia (which is a good thing) you have to start to deal with picking up the pieces after a flash. The built in control panel 'Backup' does a questionable job - while it does seem to work, it also seems to have made\u2026","rel":"","context":"In &quot;Nokia 770&quot;","block_context":{"text":"Nokia 770","link":"https:\/\/dillernet.com\/apple\/category\/nokia-770\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":319,"url":"https:\/\/dillernet.com\/apple\/2010\/01\/18\/flash-10-1-beta2-plugin-for-chrome-browser-in-karmic\/","url_meta":{"origin":256,"position":4},"title":"Flash 10.1 Beta2 plugin for Chrome Browser in Karmic","author":"dillera","date":"January 18, 2010","format":false,"excerpt":"So if you have the 1201N you really should have the Flash 10.1 Beta2 plugin, which supports the ION chip in your Netbook and plays back flash video content near flawlessly and with minimal CPU overhead.After you download the flash beta, you extract it and run a simple installer from\u2026","rel":"","context":"In &quot;EEE&quot;","block_context":{"text":"EEE","link":"https:\/\/dillernet.com\/apple\/category\/eee\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":96,"url":"https:\/\/dillernet.com\/apple\/2006\/01\/11\/770-previous-post-redux\/","url_meta":{"origin":256,"position":5},"title":"770 Previous Post Redux","author":"admin","date":"January 11, 2006","format":false,"excerpt":"Some important updates on my past 770 posts. Swap If you are using .51 firmware and want to use swap, use 24 megs or less. I had problems using 128, then 64, then 32 megs. Finally Andy Flegg was able to tip me off that there is an issue with\u2026","rel":"","context":"In &quot;Nokia 770&quot;","block_context":{"text":"Nokia 770","link":"https:\/\/dillernet.com\/apple\/category\/nokia-770\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":3,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/posts\/256\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dillernet.com\/apple\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}