<?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>Orange Cabin &#187; ruby</title>
	<atom:link href="http://blog.orangecabin.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.orangecabin.com</link>
	<description>Blog of a freelance programmer</description>
	<lastBuildDate>Thu, 27 May 2010 13:25:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install ruby 1.9 on Windows using zip binary</title>
		<link>http://blog.orangecabin.com/2009/05/install-ruby-1-9-on-windows-using-zip-binary/</link>
		<comments>http://blog.orangecabin.com/2009/05/install-ruby-1-9-on-windows-using-zip-binary/#comments</comments>
		<pubDate>Sat, 30 May 2009 11:39:35 +0000</pubDate>
		<dc:creator>Pan</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.orangecabin.com/?p=48</guid>
		<description><![CDATA[Update:  This post is outdated. All in one installer for 1.9 is ready now, you should use it if you need 1.9 on windows. Get it here http://rubyforge.org/frs/?group_id=167
Ruby has &#8220;all-in-one&#8221; installer for Windows, but it is outdated. As of May 2009, Ruby 1.9.1 is released, the installer is still 1.8.6. If you want the latest [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:  This post is outdated. All in one installer for 1.9 is ready now, you should use it if you need 1.9 on windows. Get it here </strong><a href="http://rubyforge.org/frs/?group_id=167"><strong>http://rubyforge.org/frs/?group_id=167</strong></a></p>
<p>Ruby has &#8220;all-in-one&#8221; installer for Windows, but it is outdated. As of May 2009, Ruby 1.9.1 is released, the installer is still 1.8.6. If you want the latest version, you need the zip package. But the zip package is missing zlib.dll, libeay32.dll, ssleay32.dll and readline.dll . Here is how to install it on windows.<span id="more-48"></span></p>
<h3>Download the file</h3>
<p>First you download the 1.9 package from <a href="http://www.ruby-lang.org/en/downloads/">http://www.ruby-lang.org/en/downloads/</a><br />
Choose &#8220;Ruby 1.9 xxx binary&#8221; instead of &#8220;Ruby xxx Installer&#8221;.</p>
<h3>Install it</h3>
<p>Just Unpack the zip to c:\ruby.<br />
Then add c:\ruby\bin to windows PATH.<br />
Open a windows command console and type<br />
<code>gem update --system</code><br />
Oops, it is broken! The binary is missing some dll files.</p>
<h3>Let us fix it</h3>
<h4>zlib</h4>
<p>Download zlib windows binary from<br />
<a href="http://gnuwin32.sourceforge.net/packages/zlib.htm">http://gnuwin32.sourceforge.net/packages/zlib.htm</a></p>
<p>unzip the package, then find a file named &#8220;zlib1.dll&#8221;.<br />
Copy &#8220;zlib1.dll&#8221; to your ruby\bin directory AND rename it to zlib.dll<br />
What the heck?! Why renaming it? Because ruby source code reference the dll as zlib.dll. It is common to use alias like this on Linux. Ruby source was coded on Linux.</p>
<h4>openssl</h4>
<p>Download openssl windows binary from<br />
<a href="http://gnuwin32.sourceforge.net/packages/openssl.htm">http://gnuwin32.sourceforge.net/packages/openssl.htm</a><br />
Unzip it.<br />
Find &#8220;libeay32.dll&#8221;, copy to ruby\bin. Don&#8217;t rename it.<br />
Find &#8220;libssl32.dll&#8221;, copy to ruby\bin and rename it to ssleay32.dll</p>
<h4>readline</h4>
<p>Download readline windows binary from<br />
<a href="http://gnuwin32.sourceforge.net/packages/readline.htm">http://gnuwin32.sourceforge.net/packages/readline.htm</a><br />
Unzip it.<br />
Find &#8220;readline5.dll&#8221;, copy to ruby\bin and rename it to readline.dll</p>
<h4>Done</h4>
<p>That is all. Now type<br />
<code>gem update --system</code><br />
then<br />
<code>gem install rails</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.orangecabin.com/2009/05/install-ruby-1-9-on-windows-using-zip-binary/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
	</channel>
</rss>
