<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3305647044405139014</id><updated>2012-02-15T23:26:18.902-08:00</updated><category term='linux'/><category term='stash'/><category term='git'/><category term='commit'/><category term='local'/><category term='remote'/><category term='origin'/><category term='abort'/><category term='error'/><category term='pull'/><category term='master'/><category term='pop'/><category term='deploy'/><category term='merge'/><title type='text'>TechLIberty</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techliberty.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techliberty.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Wolfravenous</name><uri>http://www.blogger.com/profile/02790046992751377959</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_v0RHysQeP5g/SpVHxfC9ndI/AAAAAAAAAGA/pBk-PMYlDZg/S220/templar.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3305647044405139014.post-1640888975474881116</id><published>2011-09-07T05:33:00.000-07:00</published><updated>2011-09-07T05:41:43.330-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='merge'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='remote'/><category scheme='http://www.blogger.com/atom/ns#' term='stash'/><category scheme='http://www.blogger.com/atom/ns#' term='local'/><category scheme='http://www.blogger.com/atom/ns#' term='pull'/><category scheme='http://www.blogger.com/atom/ns#' term='origin'/><category scheme='http://www.blogger.com/atom/ns#' term='deploy'/><category scheme='http://www.blogger.com/atom/ns#' term='master'/><category scheme='http://www.blogger.com/atom/ns#' term='pop'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='abort'/><category scheme='http://www.blogger.com/atom/ns#' term='git'/><category scheme='http://www.blogger.com/atom/ns#' term='commit'/><title type='text'>Stashing Local Changes to a Git Repository When Pulling from Remote Repo</title><content type='html'>You can update your local repository with the remote by using the command:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ git pull origin "remote_name"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;If you receive an error like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;error: Your local changes to 'projectFolder/fileName' would be overwritten by merge.  Aborting.  Please, commit your changes or stash them before you can merge.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You can ‘stash’ your local changes and revert them later by using the command:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ git stash save "comment goes here - describe reason Local copy diffs from repo?"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then you can do the pull without any errors.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ git pull origin "remote_name"&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To restore the stash from earlier use the command:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ git stash pop&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;Hope this is helpful to those using git for deployment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3305647044405139014-1640888975474881116?l=techliberty.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techliberty.blogspot.com/feeds/1640888975474881116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techliberty.blogspot.com/2011/09/stashing-local-changes-to-git.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default/1640888975474881116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default/1640888975474881116'/><link rel='alternate' type='text/html' href='http://techliberty.blogspot.com/2011/09/stashing-local-changes-to-git.html' title='Stashing Local Changes to a Git Repository When Pulling from Remote Repo'/><author><name>Wolfravenous</name><uri>http://www.blogger.com/profile/02790046992751377959</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_v0RHysQeP5g/SpVHxfC9ndI/AAAAAAAAAGA/pBk-PMYlDZg/S220/templar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3305647044405139014.post-2113903552853202553</id><published>2009-12-16T08:12:00.000-08:00</published><updated>2009-12-16T08:13:01.674-08:00</updated><title type='text'>Dealing with "rake aborted! uninitialized constant MysqlCompat::MysqlRes"</title><content type='html'>&lt;div apple-content-edited="true"&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;This post is relevant for those running Ruby on Rails and MySQL on Leopard or Snow Leopard using the default components pre-installed in OS. &amp;nbsp;This will probably be relevant to those who have a Hive Logic roll your own from source install also. &amp;nbsp; &amp;nbsp;This post might even be useful to those daring enough to do their RoR work on Linux, go Penguin Heads!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Ok, I am creating this post for those that have the misfortune of running into this error as I have. &amp;nbsp;I am not a rails noob, but I am far from a jedi, so when I run into problems I usually turn to web forums and blogs for solutions. &amp;nbsp;The only problem is there is often lots of solutions to the same problem with very little explanation as to why the solution works or a way to derive at the conclusion that the offered suggestion is in fact a solution.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;That is my attempt to avoid that here. &amp;nbsp;If you are getting the dreaded "rake aborted! uninitialized constant MysqlCompat::MysqlRes" when trying to run a &lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;rake db:migrate&lt;/span&gt;&lt;/font&gt; command on your rails project their is a reason. &amp;nbsp;The reason is not Rails, and not MySQL but the mysql gem you have installed into Rails. &amp;nbsp; Basically you have installed the mysql gem incorrectly. &amp;nbsp; Luckily there is a simple trick to determine the correct method to install your mysql gem.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Since the MySQL database you installed on your OSX of some feline distinction is not a universal binary it is architecture specific. &amp;nbsp;Thus the mysql gem must also be compiled by the gcc compiler to match the same architecture. &amp;nbsp; So you have to determine the correct command and architecture to use to install the mysql gem. &amp;nbsp;I will lay out the simplest solution that I know of to correctly determine the command for yourself.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1. Open a terminal window, &amp;nbsp;btw if you need a tutorial on how to do this welcome to the unix world and don't feel bad we all have to start somewhere ;)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2. Navigate to some benign place like your desktop for example:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;cd ~/Desktop/&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;3. &amp;nbsp;Create a simple Rails demo project with the specification for a MySQL database with the command:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;rails demo --database mysql&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;4. &amp;nbsp;Now you need to navigate to the config folder of your project by running the command:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;cd demo/config/&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;5. Once in the config directory running the ls command should return results like below :&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;Machinename:config username$ &lt;/span&gt;&lt;/font&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;ls&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;boot.rb&lt;/span&gt;&lt;/font&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;		&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;environment.rb&lt;/span&gt;&lt;/font&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;initializers&lt;/span&gt;&lt;/font&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;routes.rb&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;database.yml&lt;/span&gt;&lt;/font&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;environments&lt;/span&gt;&lt;/font&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;locales&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;6. &amp;nbsp;Use your favorite text editor to view the contents of the database.yml file, my favorite is Textmate but for convention I will us the command for vi since most folks have vi even if they don't have Textmate.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;&lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;vi database.yml&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "&gt;&lt;div&gt;7.&amp;nbsp;***IMPORTANT*** &amp;nbsp;Before running any of the below commands you need to clean out any mysql gems you have already installed using the command in a terminal window after closing vi or the text editor you use to view the database.yml file&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; "&gt;	&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; "&gt;gem uninstall mysql&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;if given options for multiple mysql gems REMOVE THEM ALL.&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;8. &amp;nbsp;Inside the database.yml file you should see something similar to the text below:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;Install the MySQL driver:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; gem install mysql&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# On Mac OS X:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# On Mac OS X Leopard:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; This sets the ARCHFLAGS environment variable to your native architecture&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# On Windows:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; gem install mysql&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; Choose the win32 build.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; Install MySQL and put its /bin directory on your path&lt;/span&gt;&lt;/font&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;9. Notice the command for Leopard, this is **ALMOST** the command I needed to use to install the mysql gem into rails. &amp;nbsp;The reason I say almost is there was one minor change that I needed to make. You have to set the correct architecture type in the ARCHFLAGS specification. &amp;nbsp;If you are like me and Santa hasn't brought you a new powerbook in the past few years then it maybe "- arch ppc". &amp;nbsp;If you have been good then Santa may have you on the "-arch i386" arch type and if you have been really nice you may get to use "-arch&amp;nbsp;x86_64" so below are the different commands for the different feline distros, but remember to clear out any already installed mysql gems first (see step 7 above).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Prior to Leopard:&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" face="'Andale Mono'" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class="Apple-style-span" size="4"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;Leopard on a PPC machine:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 14px; "&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;sudo env ARCHFLAGS="-arch ppc" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Leopard on an Intel machine:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 14px; "&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Snow Leopard (only on Intel):&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 14px; "&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class="Apple-style-span" face="'Andale Mono'"&gt;sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;10. &amp;nbsp; That should do it. &amp;nbsp;You should now be able to return to your projects and run the&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: 'Andale Mono'; font-size: 14px; "&gt;rake db:migrate&lt;/span&gt;&amp;nbsp;command without seeing the awful&amp;nbsp;&amp;nbsp;"rake aborted! uninitialized constant MysqlCompat::MysqlRes" &amp;nbsp;error.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;11.&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;Many thanks to my Ruby on Rails Jedi friend RW for showing me this simple trick. &amp;nbsp;The force is powerful in that one :)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3305647044405139014-2113903552853202553?l=techliberty.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techliberty.blogspot.com/feeds/2113903552853202553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html#comment-form' title='28 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default/2113903552853202553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default/2113903552853202553'/><link rel='alternate' type='text/html' href='http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html' title='Dealing with &quot;rake aborted! uninitialized constant MysqlCompat::MysqlRes&quot;'/><author><name>Wolfravenous</name><uri>http://www.blogger.com/profile/02790046992751377959</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_v0RHysQeP5g/SpVHxfC9ndI/AAAAAAAAAGA/pBk-PMYlDZg/S220/templar.gif'/></author><thr:total>28</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3305647044405139014.post-1977219434145680074</id><published>2009-09-14T15:26:00.001-07:00</published><updated>2009-09-14T15:26:34.504-07:00</updated><title type='text'>Converting Publisher Files</title><content type='html'>This is something that people commonly ask me about from time to time.  How to deal with those pesky .pub files without purchasing MS Publisher???   I found a link that I think can be of some help to lots of people out there so I am going to post it here.  It allows you to use a web page to convert files to other formats for free.  So you could convert a Publisher file to a Word file or even into the open source ODT file format to be used with Open Office.  Here is the link:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.zamzar.com/2008/01/25/convert-ms-publisher-files-pub-files-to-doc-pdf-odt-rtf-and-more/"&gt;Zamzar File Conversion Page&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3305647044405139014-1977219434145680074?l=techliberty.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techliberty.blogspot.com/feeds/1977219434145680074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://techliberty.blogspot.com/2009/09/converting-publisher-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default/1977219434145680074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3305647044405139014/posts/default/1977219434145680074'/><link rel='alternate' type='text/html' href='http://techliberty.blogspot.com/2009/09/converting-publisher-files.html' title='Converting Publisher Files'/><author><name>Wolfravenous</name><uri>http://www.blogger.com/profile/02790046992751377959</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_v0RHysQeP5g/SpVHxfC9ndI/AAAAAAAAAGA/pBk-PMYlDZg/S220/templar.gif'/></author><thr:total>0</thr:total></entry></feed>
