<?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>Anlek Consulting &#187; sqlite3</title>
	<atom:link href="http://anlek.com/tag/sqlite3/feed/" rel="self" type="application/rss+xml" />
	<link>http://anlek.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 10 Nov 2011 16:29:24 +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>Installing/Updating SQLite3 on Windows</title>
		<link>http://anlek.com/2008/09/installing-updating-sqlite3-on-windows/</link>
		<comments>http://anlek.com/2008/09/installing-updating-sqlite3-on-windows/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 15:29:52 +0000</pubDate>
		<dc:creator>Andrew Kalek</dc:creator>
				<category><![CDATA[gem]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[sqlite3]]></category>

		<guid isPermaLink="false">http://blog.anlek.com/?p=25</guid>
		<description><![CDATA[Installing SQLite3 DLL To install SQLite3 in windows you require not only the gem but a DLL files in your system PATH (or in your windows/system32 folder). To obtain the DLL, go to: http://www.sqlite.org/download.html I always believe that DLLs belong in the windows/system32 folder but as long as you put yours somewhere where your PATH [...]]]></description>
			<content:encoded><![CDATA[<h3>Installing SQLite3 DLL</h3>
<p>To install SQLite3 in windows you require not only the <em>gem</em> but a <em>DLL </em>files in your system PATH (or in your windows/system32 folder).</p>
<p>To obtain the DLL, go to: <a title="SQLite3 Download Page" href="http://www.sqlite.org/download.html" target="_blank">http://www.sqlite.org/download.html</a></p>
<p>I always believe that DLLs belong in the windows/system32 folder but as long as you put yours somewhere where your <a title="More info on PATH" href="http://vlaurie.com/computers2/Articles/environment.htm" target="_blank">PATH environment variable</a> points to, you should be fine.</p>
<h3>Installing/Updating the SQLite3 Gem</h3>
<p>Normally to install the gem you&#8217;d call <strong>gem install sqlite3-ruby</strong> and it would do everything automatically but if you try it (as of today) it will give you the following error:</p>
<p><code>C:&gt;gem install sqlite3-ruby<br />
Building native extensions.  This could take a while...<br />
ERROR:  Error installing sqlite3-ruby:<br />
ERROR: Failed to build gem native extension.</code></p>
<p><code>c:/ruby/bin/ruby.exe extconf.rb install sqlite3-ruby<br />
checking for fdatasync() in rt.lib... no<br />
checking for sqlite3.h... no</code></p>
<p><code>nmake<br />
'nmake' is not recognized as an internal or external command,<br />
operable program or batch file.</code></p>
<p><code>Gem files will remain installed in<br />
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.<br />
Results logged to<br />
c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out</code></p>
<p>As not helpful as that error message is, it turns out that the new version of sqlite3-ruby doesn&#8217;t have a win32 version (which is needed for it to install/function correctly). So all you have to do is specify an older version of sqlite3.</p>
<p>To install a older version of a gem, run:</p>
<p><strong><code>gem install --version 1.2.3 sqlite3-ruby</code></strong></p>
<p>Now you&#8217;re all set to go!</p>
<p>Once sqlite3 is installed and you try to update the rest of your gems calling <strong>gem update</strong>, it will fail because (as of September 8th) sqlite3-ruby doesn&#8217;t have a win32 version of the 1.2.4 gem. To get around this, remove the sqlite3-ruby gem (<strong>gem uninstall sqlite3-ruby</strong>), then call <strong>gem update</strong> and then reinstall the gem by calling <strong><span class="quoting-level-1">gem install &#8211;version 1.2.3 sqlite3-ruby.</span></strong></p>
<p>SOURCE:</p>
<p>The most helpful site online that helped me figure this out was: <a title="Source for GEM fix" href="http://www.ruby-forum.com/topic/164116" target="_blank">http://www.ruby-forum.com/topic/164116</a></p>
<h3>UPDATE:</h3>
<p><strong>I just tired updating the gems myself and had to uninstall sqlite3-ruby (it seems as of October 21st, 2008, they still haven&#8217;t fixed the issue!) and I copied the command of my own blog to find it doesn&#8217;t work. Not sure if it&#8217;s just firefox or wordpress but the problem is in the way the page is rendered, the &#8220;- &#8211; version&#8221; has a double dash (without the space) but the browser changes the html and makes it one dash. So I attempted to put it in a different format. So for those who had issues before, you can now copy the code above and just make sure that the version has a double dash in front of it.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://anlek.com/2008/09/installing-updating-sqlite3-on-windows/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

