<?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 Developer Day &#187; cygwin</title>
	<atom:link href="http://www.thedeveloperday.com/tag/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperday.com</link>
	<description>Staying Curious</description>
	<lastBuildDate>Tue, 27 Jul 2010 17:33:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Building Drizzle on Cygwin or getting as far as possible</title>
		<link>http://www.thedeveloperday.com/building-drizzle-on-cygwin-or-getting-as-far-as-possible/</link>
		<comments>http://www.thedeveloperday.com/building-drizzle-on-cygwin-or-getting-as-far-as-possible/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 17:52:19 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[drizzle]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/?p=83</guid>
		<description><![CDATA[It&#8217;s been quite a while i have this sort of desire to offer my help for some opensource project i like. One of my most favorite candidates is Drizzle. I should say my knowledge of C is really poor and there&#8217;s a whole crazy world out there full of C applications and build tools. Nevertheless [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been quite a while i have this sort of desire to offer my help for some opensource project i like. One of my most favorite candidates is <a title="Drizzle" href="https://launchpad.net/drizzle">Drizzle</a>. I should say my knowledge of C is really poor and there&#8217;s a whole crazy world out there full of C applications and build tools.</p>
<p>Nevertheless i decided to atleast try and see if i would be able to build it and maybe change something, run some tests. As I am a Windows user i found out the only way for me to build Drizzle is through <a title="cygwin" href="http://www.cygwin.com/">Cygwin</a>. I started with installing the latest stable version of Cygwin 1.5.25-15. I must say that their installer is really nice but i would offer to add a package search feature. Might help when you want to install numerous packages.</p>
<p>So what&#8217;s next? I found this wiki page about <a title="Compiling drizzle" href="http://drizzle.org/wiki/Compiling">building drizzle</a> and figured first thing i should do is get <a href="http://bazaar-vcs.org/">Bazaar</a>. I installed the following packages using Cygwin installer:</p>
<ul>
<li>bison</li>
<li>bzr</li>
<li>gettext</li>
<li>readline</li>
<li>libpcre0</li>
<li>pcre</li>
<li>pcre-devel</li>
<li>libtoolize</li>
<li>gperf</li>
<li>e2fsprogs</li>
</ul>
<p>And then went on to get the Drizzle sources:</p>
<blockquote><p>mkdir ~/bzrwork<br />
bzr init-repo ~/bzrwork<br />
cd ~/bzrwork<br />
bzr branch lp:drizzle</p></blockquote>
<p>Now onto building. Here&#8217;s where all the fun begins.</p>
<p>Drizzle requires a tool named libevent which is not available through Cygwin installer and you must build it yourself. And still you can&#8217;t build libevent with the latest version of Cygwin because it lacks certain functionality. After some googling i found a patched <a title="ipv6 cygwin" href="http://monkeymail.org/archives/libevent-users/2009-January/001488.html">IPV6 version of Cygwin</a> that fixes these issues. Added the #define EAI_SYSTEM 11 to http.c and finally were able to ./configure &amp;&amp; make &amp;&amp; make install libevent.</p>
<p>You also need <a title="protobuf" href="http://code.google.com/p/protobuf/">protobuf</a> installed. And there&#8217;s no package for that either. Actually this protobuf is quite nice stuff. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.</p>
<p>Now that we seem to have all the packages installed we can start building drizzle. It should be as easy as this:</p>
<blockquote><p>cd drizzle<br />
./config/autorun.sh<br />
./configure<br />
make<br />
make install</p></blockquote>
<p><strong>It is not.</strong> First to be able to compile Drizzle you need to have gcc4. And even if you do, ./configure must need to know where it is. So we need to use additional flags CC and CXX. Then you need to show ./configure where libevent is installed by adding a flag &#8211;with-libevent-prefix=/usr/local or any other place you have it in. I also found a really ugly problem with warnings. I wasn&#8217;t able to compile drizzle because it stopped somwhere in gnulib complaining about some warnings that were treated as errors. Funny enough there is a sarcastic option to disable these warnings: &#8211;disable-pedantic-warnings. You also probably want to install Drizzle somwhere else than usual by using:  &#8211;prefix=/some/deploy/dir.</p>
<p>In the end you come up with something like this: </p>
<p>./configure CC=gcc-4 CXX=g++-4 &#8211;with-libevent-prefix=/usr/local &#8211;disable-pedantic-warnings &#8211;prefix=/some/deploy/dir</p>
<p>That&#8217;s how far i&#8217;ve got with it. Though i&#8217;m still not able to compile it.  I get an error somwhere in mystrings library that is related to some datatype casting issues. Hopefully i&#8217;ll be able to hack through this <img src='http://www.thedeveloperday.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/building-drizzle-on-cygwin-or-getting-as-far-as-possible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux like terminal on Windows!</title>
		<link>http://www.thedeveloperday.com/linux-like-terminal-windows/</link>
		<comments>http://www.thedeveloperday.com/linux-like-terminal-windows/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 18:30:26 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/linux-like-terminal-windows/</guid>
		<description><![CDATA[Have you ever wanted to make your CMD window fullscreen? You did? And it didn&#8217;t work? Too bad. Have you ever wanted to search something in your files using grep, awk, less, sort? Have you ever tried to mass rename your files ? You did? And it didn&#8217;t work? Too bad.Be worried no more! First you [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left">Have you ever wanted to make your CMD window fullscreen? You did? And it didn&#8217;t work? Too bad. Have you ever wanted to search something in your files using grep, awk, less, sort? Have you ever tried to mass rename your files ? You did? And it didn&#8217;t work? Too bad.Be worried no more! First you need <a href="http://www.cygwin.com/" title="Cygwin homepage">Cygwin</a>. Cygwin is a Linux-like environment for Windows. It also provides you a lot of tools which provide linux look and feel. Install cygwin while changing none of the default settings. Now you can do something like this:</p>
<p><a href="http://www.thedeveloperday.com/wp-content/uploads/2008/09/cygwin_terminal.jpg" title="Cygwin Terminal"><img src="http://www.thedeveloperday.com/wp-content/uploads/2008/09/cygwin_terminal.thumbnail.jpg" alt="Cygwin Terminal" title="Cygwin Terminal" /></a> 
<p style="text-align: left">Notice that this is a simple CMD like window but it now has some nice colors and new shiny tools.Now in order to make it even more cool you need a tool named <a href="http://code.google.com/p/puttycyg/" title="putty cygwin terminal">PuTTYcyg</a>. PuTTYcyg is a patched version of PuTTY that, in addition to telnet, rlogin, ssh, and serial connections, can also be used as a local Cygwin terminal instead of the Windows console. Download the package and unzip it somwhere. I put it in C:\Program Files\puttycyg. Now double click on a file named putty.exe. Now fill everything as in the image bellow and press save.</p>
<p> <a href="http://www.thedeveloperday.com/wp-content/uploads/2008/09/local.jpg" title="cygwin putty configuration"><img src="http://www.thedeveloperday.com/wp-content/uploads/2008/09/local.thumbnail.jpg" alt="cygwin putty configuration" /></a> 
<p style="text-align: left">Now make a shortcut of this putty.exe on your Desktop. And change it&#8217;s properties like this:</p>
<p><a href="http://www.thedeveloperday.com/wp-content/uploads/2008/09/terminal.jpg" title="cygwin putty terminal shortcut"><img src="http://www.thedeveloperday.com/wp-content/uploads/2008/09/terminal.thumbnail.jpg" alt="cygwin putty terminal shortcut" /></a>  
<p style="text-align: left">Click apply and you are ready to go myfriend! Double click on the shortcut and you should be able to do thins like this including full screen resize yay!</p>
<p><a href="http://www.thedeveloperday.com/wp-content/uploads/2008/09/terminal2.jpg" title="putty cygwin terminal"><img src="http://www.thedeveloperday.com/wp-content/uploads/2008/09/terminal2.thumbnail.jpg" alt="putty cygwin terminal" /></a> 
<p style="text-align: left">Now .. Begone CMD!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/linux-like-terminal-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
