<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing the median user defined function on MySQL</title>
	<atom:link href="http://www.mooreds.com/wordpress/archives/376/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mooreds.com/wordpress/archives/376</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 14:11:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3332</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Mon, 23 May 2011 03:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3332</guid>
		<description>Thanks Jeff!</description>
		<content:encoded><![CDATA[<p>Thanks Jeff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Beard</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3331</link>
		<dc:creator>Jeff Beard</dc:creator>
		<pubDate>Sat, 21 May 2011 21:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3331</guid>
		<description>Dan,

Here&#039;s my blog post about udf_median on 64bit Windows 7 for you and the folks that refer to this post:

http://jeffbeard.org/2011/05/mysql-udf_median-on-windows-7-64bit/</description>
		<content:encoded><![CDATA[<p>Dan,</p>
<p>Here&#8217;s my blog post about udf_median on 64bit Windows 7 for you and the folks that refer to this post:</p>
<p><a href="http://jeffbeard.org/2011/05/mysql-udf_median-on-windows-7-64bit/" rel="nofollow">http://jeffbeard.org/2011/05/mysql-udf_median-on-windows-7-64bit/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ven</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3282</link>
		<dc:creator>Ven</dc:creator>
		<pubDate>Tue, 22 Feb 2011 07:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3282</guid>
		<description>I am trying to compile using the command: gcc -shared -lstdc++ -I /usr/include -I /usr/local/include -I /usr/local/mysql/include/ -o udf_median.so udf_median.cc on Mac OS X 10.4.11. I get the following error:

i686-apple-darwin8-gcc-4.0.1: unrecognized option &#039;-shared&#039;
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status

The Darwin kernel version is 8.11.1. Any thoughts?</description>
		<content:encoded><![CDATA[<p>I am trying to compile using the command: gcc -shared -lstdc++ -I /usr/include -I /usr/local/include -I /usr/local/mysql/include/ -o udf_median.so udf_median.cc on Mac OS X 10.4.11. I get the following error:</p>
<p>i686-apple-darwin8-gcc-4.0.1: unrecognized option &#8216;-shared&#8217;<br />
/usr/bin/ld: Undefined symbols:<br />
_main<br />
collect2: ld returned 1 exit status</p>
<p>The Darwin kernel version is 8.11.1. Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3234</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Mon, 06 Dec 2010 23:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3234</guid>
		<description>Has anyone managed to get this UDF to work with Windows 7?  I tried, but couldn&#039;t get it working, and would love any tips.</description>
		<content:encoded><![CDATA[<p>Has anyone managed to get this UDF to work with Windows 7?  I tried, but couldn&#8217;t get it working, and would love any tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3212</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Mon, 25 Oct 2010 15:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3212</guid>
		<description>Thanks Thomas!</description>
		<content:encoded><![CDATA[<p>Thanks Thomas!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3206</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 12 Oct 2010 15:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3206</guid>
		<description>This was really helpful.

BTW:
If anyone encounters the following error(ubuntu) while trying to insert the UDF in mysql:
&quot;failed to map segment from shared object: Permission denied&quot;

you can fix it by stop apparmor
cd /etc/init.d/
./apparmor stop

then insert the udf and
./apparmor start

Thanks!</description>
		<content:encoded><![CDATA[<p>This was really helpful.</p>
<p>BTW:<br />
If anyone encounters the following error(ubuntu) while trying to insert the UDF in mysql:<br />
&#8220;failed to map segment from shared object: Permission denied&#8221;</p>
<p>you can fix it by stop apparmor<br />
cd /etc/init.d/<br />
./apparmor stop</p>
<p>then insert the udf and<br />
./apparmor start</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3089</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Sun, 16 May 2010 16:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3089</guid>
		<description>Thanks for the additional instructions, Dave!</description>
		<content:encoded><![CDATA[<p>Thanks for the additional instructions, Dave!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-3079</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 09 May 2010 00:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-3079</guid>
		<description>Thank you!

For what it&#039;s worth, here are the instructions I used on Kubuntu Linux, after installing MySQL and its development libraries:

for i in *.cc; do
	gcc -Wall -fPIC -DHAVE_DLOPEN -I/usr/include/mysql -c $i -o $(basename $i .cc).o;
	ld -shared -o $(basename $i .cc).so $(basename $i .cc).o;
done

This way you install everything and don&#039;t have to comment out any flags. Use the -D parameter to set the flag while compiling. Then you can do:

CREATE AGGREGATE FUNCTION slope RETURNS REAL SONAME &#039;udf_slope.so&#039;;

And it worked for me!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
<p>For what it&#8217;s worth, here are the instructions I used on Kubuntu Linux, after installing MySQL and its development libraries:</p>
<p>for i in *.cc; do<br />
	gcc -Wall -fPIC -DHAVE_DLOPEN -I/usr/include/mysql -c $i -o $(basename $i .cc).o;<br />
	ld -shared -o $(basename $i .cc).so $(basename $i .cc).o;<br />
done</p>
<p>This way you install everything and don&#8217;t have to comment out any flags. Use the -D parameter to set the flag while compiling. Then you can do:</p>
<p>CREATE AGGREGATE FUNCTION slope RETURNS REAL SONAME &#8216;udf_slope.so&#8217;;</p>
<p>And it worked for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moore</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-2991</link>
		<dc:creator>moore</dc:creator>
		<pubDate>Fri, 12 Feb 2010 21:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-2991</guid>
		<description>Hi Jo Yo,

JsMap looks really cool!

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Jo Yo,</p>
<p>JsMap looks really cool!</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jo Yo</title>
		<link>http://www.mooreds.com/wordpress/archives/376/comment-page-1#comment-2990</link>
		<dc:creator>Jo Yo</dc:creator>
		<pubDate>Fri, 12 Feb 2010 20:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mooreds.com/wordpress/?p=376#comment-2990</guid>
		<description>I&#039;m working on JsReduce which is going to be a special aggregate function. I have JsMap working and you can check it out now: http://bit.ly/cKA8np

Ideally, this will be ultra flexible for prototyping reports and getting things done.</description>
		<content:encoded><![CDATA[<p>I&#8217;m working on JsReduce which is going to be a special aggregate function. I have JsMap working and you can check it out now: <a href="http://bit.ly/cKA8np" rel="nofollow">http://bit.ly/cKA8np</a></p>
<p>Ideally, this will be ultra flexible for prototyping reports and getting things done.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.mooreds.com/wordpress/archives/376/feed ) in 0.24459 seconds, on Feb 8th, 2012 at 9:21 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 10:21 pm UTC -->
