<?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; centos</title>
	<atom:link href="http://blog.eflow.org/archives/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.eflow.org</link>
	<description>Insert some amazingly witty tagline here</description>
	<lastBuildDate>Fri, 09 Dec 2011 18:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<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 [...]]]></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>9</slash:comments>
		</item>
		<item>
		<title>Building OpenMRS w/ Ant on CentOS</title>
		<link>http://blog.eflow.org/archives/22</link>
		<comments>http://blog.eflow.org/archives/22#comments</comments>
		<pubDate>Wed, 19 Dec 2007 17:29:49 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[openmrs]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://eflow.org/blog/archives/22</guid>
		<description><![CDATA[I recently had the pleasure of setting up an ant build of OpenMRS on our new servers. After installing ant and the OpenMRS source code I kept getting a never-before-seen error when building: No supported regular expression matcher found I made sure I had jdk 1.6 installed. I tried upgrading to Ant 1.7 (from 1.6.5). [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the pleasure of setting up an ant build of OpenMRS on our new servers.  After installing ant and the OpenMRS source code I kept getting a never-before-seen error when building:</p>
<blockquote><p>No  supported regular expression matcher found</p></blockquote>
<p>I made sure I had jdk 1.6 installed.  I tried upgrading to Ant 1.7 (from 1.6.5).</p>
<p>I ran an &#8220;ant -diagnostics&#8221;.  It wasn&#8217;t showing the optional ant jars so I dropped all of the jars into the ant home lib directory.  Now the jars were showing up but I was still getting the same error as before.</p>
<p>The solution ended up being that Ant lied to me.  It was actually looking for the jars in /usr/share/java/ant (not in its reported /usr/share/ant).  The puzzling thing is that Ant tells me it finds the jars when running &#8220;ant -diagnostics&#8221;.</p>
<p>I ended up installing the optional ant jars via yum. (or apt-get if you&#8217;re on a debian flavor) Yum didn&#8217;t have the explicit ant-optional package, so I just installed all ant-*.jar files.  Voila!  Successful building via ant is now possible.</p>
 <img src="http://blog.eflow.org/wp-content/plugins/feed-statistics.php?view=1&post_id=22" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.eflow.org/archives/22/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

