<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The eflow blog &#187; gcc</title>
	<atom:link href="http://blog.eflow.org/archives/tag/gcc/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.eflow.org</link>
	<description>Insert some amazingly witty tagline here</description>
	<lastBuildDate>Fri, 23 Apr 2010 03:19:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installation troubles with MySQLdb-python</title>
		<link>http://blog.eflow.org/archives/54</link>
		<comments>http://blog.eflow.org/archives/54#comments</comments>
		<pubDate>Thu, 29 May 2008 18:34:03 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[babble]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.eflow.org/?p=54</guid>
		<description><![CDATA[I&#8217;m in the middle of moving OpenMRS&#8217;s web presence from a shared virtual machine to a new dedicated box.  The only trouble I ran into was with the mysql python module (again).
For posterity&#8217;s sake, I&#8217;m going to write my solution here.
easy_install mysql-python
I received this error when trying to install the MySQLdb-python module into python on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m in the middle of moving OpenMRS&#8217;s web presence from a shared virtual machine to a new dedicated box.  The only trouble I ran into was with the mysql python module (again).</p>
<p>For posterity&#8217;s sake, I&#8217;m going to write my solution here.</p>
<blockquote><p>easy_install mysql-python</p></blockquote>
<p>I received this error when trying to install the MySQLdb-python module into python on centOS:</p>
<blockquote><p>_mysql.c:2808: error: expected declaration specifiers before ‘init_mysql’<br />
_mysql.c:2886: error: expected ‘{’ at end of input<br />
error: Setup script exited with error: command &#8216;gcc&#8217; failed with exit status 1</p></blockquote>
<p>The fix I remembered.  I just had to install the python development packages:</p>
<blockquote><p>yum install python-devel</p></blockquote>
<p>I then had another very odd and strangely familiar error:</p>
<blockquote><p>In file included from _mysql.c:35:<br />
/usr/include/mysql/my_config.h:15:28: error: my_config_i386.h: No such file or directory<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p></blockquote>
<p>Googling around gave me nothing helpful&#8230;in fact the results looked strangely familiar as well.  I couldn&#8217;t remember the solution to this one though.</p>
<p>Eventually, I actually <em>read</em> the error message and realized that our new vm isn&#8217;t an x64 box.  For some reason there was a my_config_x64.h file in /usr/include/mysql but there wasn&#8217;t a <a href="http://blog.eflow.org/wp-content/uploads/2008/06/my_config_i386.h">my_config_i386.h</a>.  Luckily, that file <em>was</em> present on the old server. <strong>Copying that file from /usr/include/mysql on the old box to the new was the cure.</strong></p>
 <img src="http://blog.eflow.org/wp-content/plugins/feed-statistics.php?view=1&post_id=54" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.eflow.org/archives/54/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
