<?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>Mercurial &#187; Ruby</title>
	<atom:link href="http://www.mercurial.cc/archives/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mercurial.cc</link>
	<description>Weighty, fluid, brilliant and toxic</description>
	<lastBuildDate>Mon, 14 Nov 2011 15:54:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting Ruby to work on Vista64</title>
		<link>http://www.mercurial.cc/archives/2009/12/16/getting-ruby-to-work-on-vista64/</link>
		<comments>http://www.mercurial.cc/archives/2009/12/16/getting-ruby-to-work-on-vista64/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 04:15:31 +0000</pubDate>
		<dc:creator>Camilo</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.mercurial.cc/?p=2489</guid>
		<description><![CDATA[<p>Trying to get Ruby and Rails to work in Vista64 turned to be an exercise in masochism: All the wikis, blogs, fora and others re contradicting one another, based on what worked in one system and extrapolating to other situations.</p> <p>Here, I am going to do the same.</p> <p>Part of the problem is that, after [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to get Ruby and Rails to work in Vista64 turned to be an exercise in masochism: All the wikis, blogs, fora and others re contradicting one another, based on what worked in one system and extrapolating to other situations.</p>
<p>Here, I am going to do the same.</p>
<p>Part of the problem is that, after installing all the dependencies with</p>
<div class="codecolorer-container ruby default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gem install sqlite3<span style="color:#006600; font-weight:bold;">-</span>ruby</div></div>
<p>there are messages that indicate that as not working:</p>
<blockquote><p>==== UNSUPPORTED PLATFORM ==================================</p>
<p>The platform &#8216;i386-mingw32&#8242; is unsupported. Please help the author by<br />
editing the following file to allow your sqlite3 library to be found, and<br />
submitting a patch to qoobaa@gmail.com. Thanks!</p>
<p>C:/Ruby/lib/ruby/gems/1.9.1/gems/sqlite3-0.0.4/lib/sqlite3/driver/ffi/api.rb<br />
===================================================================</p></blockquote>
<p>What I did was to go to the mentioned api.rb, and check the offending environment</p>
<div class="codecolorer-container ruby default" style="border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ffi_lib <span style="color:#9966CC; font-weight:bold;">case</span> RUBY_PLATFORM.<span style="color:#9900CC;">downcase</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#006600; font-weight:bold;">/</span>darwin<span style="color:#006600; font-weight:bold;">/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#996600;">&quot;libsqlite3.dylib&quot;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#006600; font-weight:bold;">/</span>linux<span style="color:#006600; font-weight:bold;">|</span>freebsd<span style="color:#006600; font-weight:bold;">|</span>netbsd<span style="color:#006600; font-weight:bold;">|</span>openbsd<span style="color:#006600; font-weight:bold;">|</span>dragonfly<span style="color:#006600; font-weight:bold;">|</span>solaris<span style="color:#006600; font-weight:bold;">/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#996600;">&quot;libsqlite3.so&quot;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#006600; font-weight:bold;">/</span>win32<span style="color:#006600; font-weight:bold;">/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#996600;">&quot;sqlite3.dll&quot;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; abort <span style="color:#006600; font-weight:bold;">&lt;&lt;-</span>EOF</div></div>
<p>and replaced</p>
<div class="codecolorer-container ruby default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#006600; font-weight:bold;">/</span>win32<span style="color:#006600; font-weight:bold;">/</span></div></div>
<p>with</p>
<div class="codecolorer-container ruby default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#006600; font-weight:bold;">/</span>i386<span style="color:#006600; font-weight:bold;">-</span>mingw32<span style="color:#006600; font-weight:bold;">/</span></div></div>
<p>I followed tips from <a href="http://blog.emson.co.uk/2008/06/installing-sqlite3-on-windows-for-rails/" title"emson on rails">emson</a>.</p>
<p>So far this works, but I do fully expect more trouble along the way.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d2489').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d2489" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.mercurial.cc%2Farchives%2F2009%2F12%2F16%2Fgetting-ruby-to-work-on-vista64%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.mercurial.cc/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.mercurial.cc%2Farchives%2F2009%2F12%2F16%2Fgetting-ruby-to-work-on-vista64%2F&amp;title=Getting+Ruby+to+work+on+Vista64" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.mercurial.cc/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Getting+Ruby+to+work+on+Vista64+@+http%3A%2F%2Fwww.mercurial.cc%2Farchives%2F2009%2F12%2F16%2Fgetting-ruby-to-work-on-vista64%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.mercurial.cc/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d2489').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
<script type="text/javascript">$$('div.d2489').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); </script>]]></content:encoded>
			<wfw:commentRss>http://www.mercurial.cc/archives/2009/12/16/getting-ruby-to-work-on-vista64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

