<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><description>My blog about programming, music and life.  Check out my main page at sammcd.com</description><title>sammcd.com</title><generator>Tumblr (3.0; @sammcd)</generator><link>http://sammcd.tumblr.com/</link><item><title>Building Mysql-Python on Mac OS 10.5 Leopard</title><description>&lt;p&gt;So, I have recently been learning a lot about django, and I use a mac.  This has been causing me a few problems.  The first of which is that the mysql-python download does not work on OS 10.5 Leopard out of the box.  These instructions are assuming that you installed MySQL using the MySQL Mac Binary.  Here are some instructions for installing python-mysql 1.22 os Leopard:&lt;/p&gt;
&lt;p&gt; 1)  In the MySQL-python-1.2.2 directory open up site.cfg.  Uncomment the line with mysql_config on it and make it look like this:&lt;/p&gt;
&lt;p&gt;mysql_config = /usr/local/mysql/bin/mysql_config&lt;/p&gt;
&lt;p&gt;2) This will make the install go farther, but you will still get an error message, so you need to open up _mysql.c and delete these lines: &lt;/p&gt;
&lt;p&gt; #ifndef uint &lt;/p&gt;
&lt;p&gt;#define uint unsigned int &lt;/p&gt;
&lt;p&gt;#endif &lt;/p&gt;
&lt;p&gt; 3) Run the build command by typing this: &lt;/p&gt;
&lt;p&gt;python setup.py build  &lt;/p&gt;
&lt;p&gt;This will give you some warning messages, but ignore them. &lt;/p&gt;
&lt;p&gt;4) Run the install command by typing this in terminal: &lt;/p&gt;
&lt;p&gt;python setup.py install  &lt;/p&gt;
&lt;p&gt;5) It is now installed, but if you use it, you will still get an error.  To fix it, run this terminal command: &lt;/p&gt;
&lt;p&gt;sudo mkdir /usr/local/mysql/lib/mysql &lt;br/&gt;sudo cp /usr/local/mysql/lib/libmysqlclient_r.15.dylib /usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib  &lt;/p&gt;
&lt;p&gt;Now you are ready to go. Special thanks to Michal Kox, and &lt;a href="http://forums.mysql.com/read.php?50,175059,179979#msg-179979" title="Forum Post"&gt;his post on the mysql forums&lt;/a&gt;.  Without this I would have never gotten this running.  &lt;/p&gt;</description><link>http://sammcd.tumblr.com/post/30039762</link><guid>http://sammcd.tumblr.com/post/30039762</guid><pubDate>Thu, 27 Mar 2008 22:15:00 -0400</pubDate><category>MySQL</category><category>Django</category><category>Python</category></item><item><title>Tumblr = Temporary?</title><description>So, I just set up a quick Tumblr blog because my site has been down for so long.  It is actually pretty nice, but not as customized as what I want to create.  We’ll see what I do in the end, but this is my blogging home for now.</description><link>http://sammcd.tumblr.com/post/29940774</link><guid>http://sammcd.tumblr.com/post/29940774</guid><pubDate>Wed, 26 Mar 2008 17:18:16 -0400</pubDate></item></channel></rss>
