<?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>I'm a Richardson, RU? &#187; ruby</title>
	<atom:link href="http://www.imarichardson.com/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imarichardson.com</link>
	<description>(ugh...really cool tagline goes here)</description>
	<lastBuildDate>Sat, 21 Aug 2010 16:36:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wirble Woes: &#8220;Couldn&#8217;t load Wirble: no such file to load&#8221;</title>
		<link>http://www.imarichardson.com/2010/08/21/wirble-woes-couldnt-load-wirble-no-such-file-to-load/</link>
		<comments>http://www.imarichardson.com/2010/08/21/wirble-woes-couldnt-load-wirble-no-such-file-to-load/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 16:36:48 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Programming &#038; Development]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[RubyOnRails]]></category>
		<category><![CDATA[Wirble]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/?p=347</guid>
		<description><![CDATA[Recently, I decided to use Wirble to customize my console experience. I kept running into the following error after installing the gem:
1234$ script/console
Loading development environment (Rails 2.3.5)
Couldn't load Wirble: no such file to load -- wirble
&#62;&#62;
The README wasn&#8217;t able to help much, as it only mentioned adding the Ruby path to the start of the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I decided to use Wirble to customize my console experience. I kept running into the following error after installing the gem:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ script/console<br />
Loading development environment (Rails 2.3.5)<br />
Couldn't load Wirble: no such file to load -- wirble<br />
&gt;&gt;</div></td></tr></tbody></table></div>
<p>The <a href="http://pablotron.org/software/wirble/README">README</a> wasn&#8217;t able to help much, as it only mentioned adding the Ruby path to the start of the ~/.irbrc file.  The solution was to add a require &#8216;rubygems&#8217; to the ~/.irbrc. Although the error didn&#8217;t mention it the problem was that wirble couldn&#8217;t load because rubygems were instantiated.<br />
Here&#8217;s my current ~/.irbrc with the update:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$LOAD_PATH &lt;&lt; File.expand_path('~/.ruby')<br />
begin<br />
&nbsp; # load wirble<br />
&nbsp; require 'rubygems'<br />
&nbsp; require 'wirble'<br />
<br />
&nbsp; # start wirble (with color)<br />
&nbsp; Wirble.init<br />
&nbsp; Wirble.colorize<br />
rescue LoadError =&gt; err<br />
&nbsp; warn &quot;Couldn't load Wirble: #{err}&quot;<br />
end</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2010/08/21/wirble-woes-couldnt-load-wirble-no-such-file-to-load/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Declarative Association with HABTM Relationships</title>
		<link>http://www.imarichardson.com/2009/08/03/using-declarative-association-with-habtm-relationships/</link>
		<comments>http://www.imarichardson.com/2009/08/03/using-declarative-association-with-habtm-relationships/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 17:10:01 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Programming &#038; Development]]></category>
		<category><![CDATA[declarative authentication]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/?p=325</guid>
		<description><![CDATA[For anyone out there trying to use the Declarative Authentication with a standard "Has and Belongs To Many" relationship here's a quick help.]]></description>
			<content:encoded><![CDATA[<p>In my search for an authorization/access control list solution for my Ruby needs I came across Steffen Bartsch&#8217;s &#8220;<a href="http://steffenbartsch.com/blog/2008/09/delclarative-authorization/">Declarative Authorization</a>&#8221; plugin (<a href="http://github.com/stffn/declarative_authorization/tree/master">Github source here</a>).</p>
<p>Short aside &#8230; the plugin allows for a very DRY approach to managing permission from one configuration file, not to mention that it generates a visualization of your ACL, too. This is a huge benefit when building an app that has a number of different security roles. Additionally, it allows access control on the controller, model, query, and view levels. From the site:</p>
<blockquote><p>Plugin features</p>
<ul>
<li>Authorization at controller action level</li>
<li>Authorization helpers for Views</li>
<li>Authorization at model level
<ul>
<li>Authorize CRUD (Create, Read, Update, Delete) activities</li>
<li>Query rewriting to automatically only fetch authorized records</li>
</ul>
</li>
</ul>
</blockquote>
<p>I was ecstatic about using the plugin but hit a stump when trying to work it out with my own HABTM association in my Rails app. The third requirements mentions, &#8220;User objects need to respond to a method :role_symbols that returns an array of role symbols&#8221;. My log error kept displaying:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">The use of user.roles is deprecated. &nbsp;Please add a method role_symbols to your User model.<br />
Permission denied: User.roles doesn't return an Array of Symbols ([#])<br />
Filter chain halted as [:filter_access_filter] rendered_or_redirected.</div></td></tr></tbody></table></div>
<p>In order to get things to work correctly with a User model, Roles model, and Roles_Users table for the &#8220;has_and_belongs_to_many&#8221; relationship, you need to make sure you&#8217;ve a method in your user model that &#8220;correctly&#8221; generates a &#8220;roles_symbol&#8221; array:<br />
<script src="http://gist.github.com/160692.js"></script></p>
<p><strong>Note</strong>: Make sure that you use the correct value of the filed in your roles model when serializing. The example used &#8220;title&#8221; but in my application I used &#8220;name&#8221; for the column that defined the role.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2009/08/03/using-declarative-association-with-habtm-relationships/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;sudo gem update rails&#8221; doesn&#8217;t work</title>
		<link>http://www.imarichardson.com/2008/02/08/207/</link>
		<comments>http://www.imarichardson.com/2008/02/08/207/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 16:04:05 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Programming &#038; Development]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[RubyOnRails]]></category>
		<category><![CDATA[upgrading]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/2008/02/08/207/</guid>
		<description><![CDATA[I&#8217;ve finally gotten to a point where I have been ready to upgrade to Rails 2.0.2 on one of my production machines (running Red Hat Enterprise 5). I ran into a little snag in that when trying to update rails; no error or anything, just a response that Rails 1.2.3 was installed:
123456-bash-3.1$ sudo gem update [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://docs.google.com/a/imarichardson.com/File?id=dhrs78c7_10c6ctxn9c" style="float: right; margin-top: 1em; margin-bottom: 0px; margin-left: 0px; margin-right: 1em; width: 90px; height: 103.404px" id="o656" />I&#8217;ve finally gotten to a point where I have been ready to upgrade to Rails 2.0.2 on one of my production machines (running Red Hat Enterprise 5). I ran into a little snag in that when trying to update rails; no error or anything, just a response that Rails 1.2.3 was installed:</p>
<div class="codecolorer-container ruby vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#006600; font-weight:bold;">-</span>bash<span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">3.1</span>$ sudo gem update rails <br />
Password: <br />
Updating installed gems... <br />
<span style="color:#9900CC;">Attempting</span> remote update of rails <br />
Successfully installed rails<span style="color:#006600; font-weight:bold;">-</span>2.0.2 <br />
Gems: <span style="color:#006600; font-weight:bold;">&#91;</span>rails<span style="color:#006600; font-weight:bold;">&#93;</span> updated</div></td></tr></tbody></table></div>
<p>In order to get things working right I had to update the system files so everything would run:</p>
<div class="codecolorer-container ruby vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#006600; font-weight:bold;">-</span>bash<span style="color:#006600; font-weight:bold;">-</span>3.1$ sudo gem update <span style="color:#006600; font-weight:bold;">--</span><span style="color:#CC0066; font-weight:bold;">system</span> <br />
Updating RubyGems... <br />
<span style="color:#9900CC;">Attempting</span> remote update of rubygems<span style="color:#006600; font-weight:bold;">-</span>update <br />
Successfully installed rubygems<span style="color:#006600; font-weight:bold;">-</span>update<span style="color:#006600; font-weight:bold;">-</span>0.9.4 <br />
Updating version of RubyGems to 0.9.4 <br />
Installing RubyGems 0.9.4</div></td></tr></tbody></table></div>
<p>Now running the update works.</p>
<div class="codecolorer-container ruby vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#006600; font-weight:bold;">-</span>bash<span style="color:#006600; font-weight:bold;">-</span>3.1$ sudo gem update <span style="color:#006600; font-weight:bold;">-</span>y rails <br />
Updating installed gems... <br />
<span style="color:#9900CC;">Bulk</span> updating Gem source index <span style="color:#9966CC; font-weight:bold;">for</span>: http:<span style="color:#006600; font-weight:bold;">//</span>gems.<span style="color:#9900CC;">rubyforge</span>.<span style="color:#9900CC;">org</span> <br />
Attempting remote update of rails <br />
<span style="color:#006600; font-weight:bold;">----------</span> this is where all the dependencies are updated <span style="color:#006600; font-weight:bold;">------------</span><br />
Gems: <span style="color:#006600; font-weight:bold;">&#91;</span>rails<span style="color:#006600; font-weight:bold;">&#93;</span> updated</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2008/02/08/207/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Subversion Bindings for Warehouse App</title>
		<link>http://www.imarichardson.com/2007/11/01/installing-subversion-bindings-for-warehouse-app/</link>
		<comments>http://www.imarichardson.com/2007/11/01/installing-subversion-bindings-for-warehouse-app/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 03:57:08 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Programming &#038; Development]]></category>
		<category><![CDATA[bindings]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[RubyOnRails]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[swig]]></category>
		<category><![CDATA[warehouse]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/2007/11/01/installing-subversion-bindings-for-warehouse-app/</guid>
		<description><![CDATA[ 
A number of months ago ActiveReload came on the scene with a new application called &#8220;Warehouse&#8221; which makes for a really aesthetic and functional way of managing repositories in Subversion.
The app requires you to install the Ruby Subversion Bindings, and while it may seem quick in the instructions, it wasn&#8217;t like that for me [...]]]></description>
			<content:encoded><![CDATA[<p align="center"> <img src="http://www.imarichardson.com/wp-content/uploads/warehouse.png" alt="warehouse" border="0" /></p>
<p>A number of months ago <a href="http://www.ActiveReload.com">ActiveReload</a> came on the scene with a new application called <a href="http://warehouseapp.com/">&#8220;Warehouse&#8221;</a> which makes for a really aesthetic and functional way of managing repositories in Subversion.</p>
<p>The app requires you to install the Ruby Subversion Bindings, and while it <a href="http://warehouseapp.com/installing/ruby-subversion-bindings">may seem quick in the instructions</a>, it wasn&#8217;t like that for me installing on RHEL 5. (I&#8217;m following through the instructions <a href="http://warehouseapp.com/installing/ruby-subversion-bindings">listed here</a>).</p>
<p><strong>Be warned &#8211; you may want to go grab a cup of java and get comfortable, because this is a long one &#8230;<br />
</strong><br />
First of all I have a problem extracting and installing swig.<br />
<span id="more-204"></span></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf swig-1.3.31.tar.gz<br />
swig-1.3.31<span style="color: #000000; font-weight: bold;">/</span><br />
swig-1.3.31<span style="color: #000000; font-weight: bold;">/</span>Doc<span style="color: #000000; font-weight: bold;">/</span><br />
...<br />
swig-1.3.31<span style="color: #000000; font-weight: bold;">/</span>Doc<span style="color: #000000; font-weight: bold;">/</span>Manual<span style="color: #000000; font-weight: bold;">/</span>SWIGDocumentation.pdf<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">gzip</span>: stdin: unexpected end of <span style="color: #c20cb9; font-weight: bold;">file</span><br />
<span style="color: #c20cb9; font-weight: bold;">tar</span>: Unexpected EOF <span style="color: #000000; font-weight: bold;">in</span> archive<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span>: Unexpected EOF <span style="color: #000000; font-weight: bold;">in</span> archive<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span>: Error is not recoverable: exiting now</div></td></tr></tbody></table></div>
<p>I don&#8217;t know why it happened and why the file couldn&#8217;t extract so instead I went straight to the main sourceforge page (http://sourceforge.net/projects/swig/), download the latest build, and uploaded it to my server. Then follow the instructions using the new filename (for me it was &#8220;swig-1.3.32-rc1.tar.gz&#8221;).</p>
<div class="codecolorer-container ruby vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ tar xzvf swig<span style="color:#006600; font-weight:bold;">-</span>1.3.32<span style="color:#006600; font-weight:bold;">-</span>rc1.<span style="color:#9900CC;">tar</span>.<span style="color:#9900CC;">gz</span><br />
$ cd .<span style="color:#006600; font-weight:bold;">/</span>swig<span style="color:#006600; font-weight:bold;">-</span>1.3.32<span style="color:#006600; font-weight:bold;">-</span>rc1<br />
$ sudo .<span style="color:#006600; font-weight:bold;">/</span>configure<br />
$ sudo make<br />
$ sudo make install</div></td></tr></tbody></table></div>
<p>This got me through the ./configure, but during the make I received an error that pointed to a missing &#8220;g++&#8221;.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.<span style="color: #000000; font-weight: bold;">/</span>Tools<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>depcomp: line 566: <span style="color: #7a0874; font-weight: bold;">exec</span>: <span style="color: #c20cb9; font-weight: bold;">g++</span>: not found<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>2<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Modules<span style="color: #000000; font-weight: bold;">/</span>allegrocl.o<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error 127<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Leaving directory <span style="color: #000000; font-weight: bold;">`/</span>home<span style="color: #000000; font-weight: bold;">/</span>richa088<span style="color: #000000; font-weight: bold;">/</span>swig-1.3.32-rc1<span style="color: #000000; font-weight: bold;">/</span>Source<span style="color: #ff0000;">'<br />
make[1]: *** [all] Error 2<br />
make[1]: Leaving directory `/home/richa088/swig-1.3.32-rc1/Source'</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">source</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">2</span></div></td></tr></tbody></table></div>
<p>I then found out (by way of a 2 hour date with google) that by default RHEL5 doesn&#8217;t come with g++ installed. (I&#8217;m sure a much seasoned linuxologist would have figured it out quicker, but I digress.) So, <a href="http://www.linuxquestions.org/questions/linux-software-2/downgrade-g-467470/">using yum</a>:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-c++<br />
...<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing: libstdc++-devel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">######################### [1/2]</span><br />
Installing: gcc-c++ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">######################### [2/2]</span><br />
<br />
Installed: gcc-c++.i386 <span style="color: #000000;">0</span>:4.1.1-52.el5.2<br />
Dependency Installed: libstdc++-devel.i386 <span style="color: #000000;">0</span>:4.1.1-52.el5.2<br />
Complete<span style="color: #000000; font-weight: bold;">!</span></div></td></tr></tbody></table></div>
<p>In order to get the make to pass, I then had to re-run the configure. The make, and install succeeded afterwards.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></div></td></tr></tbody></table></div>
<p>But it&#8217;s not over yet. For step 2, I ran then tried to run the &#8220;make swig-rb&#8221; and received another error regarding the Apache Portable Runtime not being installed:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">============================================<br />
WARNING: skipping the build of mod_dav_svn<br />
<span style="color: #660033;">--with-apxs</span> or <span style="color: #660033;">--with-apache</span> must be used<br />
============================================<br />
configure: Apache Portable Runtime <span style="color: #7a0874; font-weight: bold;">&#40;</span>APR<span style="color: #7a0874; font-weight: bold;">&#41;</span> library configuration<br />
checking <span style="color: #000000; font-weight: bold;">for</span> APR... no<br />
configure: WARNING: APR not found<br />
The Apache Portable Runtime <span style="color: #7a0874; font-weight: bold;">&#40;</span>APR<span style="color: #7a0874; font-weight: bold;">&#41;</span> library cannot be found.<br />
Please <span style="color: #c20cb9; font-weight: bold;">install</span> APR on this system and supply the appropriate<br />
<span style="color: #660033;">--with-apr</span> option to <span style="color: #ff0000;">'configure'</span><br />
<br />
or<br />
<br />
get it with SVN and put it <span style="color: #000000; font-weight: bold;">in</span> a subdirectory of this <span style="color: #7a0874; font-weight: bold;">source</span>:<br />
...<br />
configure: error: no suitable apr found</div></td></tr></tbody></table></div>
<p><a href="http://forum.activereload.net/forums/8/topics/241">As this post reveals</a>, there is some newness between the Apache Portable Runtime (APR) and neon (don&#8217;t even ask me to explain) which make for an error in trying to install the bindings (the command &#8220;make swig-rb&#8221;). So to get by this, I followed the instructions by <a href="http://www.workingwithrails.com/person/5337-josh-goebel">Josh Goebel</a> at <a href="http://pastie.caboo.se/99772">this pastie</a> to get by. ***Note that on line 4 you need to omit the &#8220;tar.gz&#8221; as I&#8217;ve indicated below.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> neon-0.27.1<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-ssl</span> <span style="color: #660033;">--with-libs</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><br />
...<br />
checking <span style="color: #000000; font-weight: bold;">for</span> expat.h... no<br />
checking <span style="color: #000000; font-weight: bold;">for</span> xml2-config... no<br />
configure: error: no XML parser was found: expat or libxml 2.x required</div></td></tr></tbody></table></div>
<p><strong>WOW!!! </strong>When it rains it pours &#8230; while running the first config for neon, the process stopped because I didn&#8217;t have an XML parser on the system. (I&#8217;d thought the folks who set it up had done so, but that wasn&#8217;t the case.) So I installed expat with:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> expat-devel<br />
...<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>1<span style="color: #000000; font-weight: bold;">/</span>1<span style="color: #7a0874; font-weight: bold;">&#41;</span>: expat-devel-1.95.8 100<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">|</span>=========================<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">130</span> kB &nbsp; &nbsp;00:00<br />
Running Transaction Test<br />
Finished Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing: expat-devel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">######################### [1/1]</span><br />
<br />
Installed: expat-devel.i386 <span style="color: #000000;">0</span>:1.95.8-8.2.1<br />
Complete<span style="color: #000000; font-weight: bold;">!</span></div></td></tr></tbody></table></div>
<p>And after continuing through the remainder of the pastie, I&#8217;ve finally got subversion bindings installed! And now for the moment of truth &#8230;</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ -bash-3.1$ ruby <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'puts require(&quot;svn/core&quot;)'</span><br />
<span style="color: #c20cb9; font-weight: bold;">true</span></div></td></tr></tbody></table></div>
<p>Eureka! The test passed! Now I&#8217;ve got to actually install Warehouse &#8230; but I&#8217;ll save that for tomorrow. And I won&#8217;t even tell you how long it took me to finish all this stuff.</p>
<p>Here&#8217;s the complete <a href="http://pastie.caboo.se/99772">pastie</a> with my additions (depending on how your admin set things up you may have to sudo each line):</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> expat-devel <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">if</span> you don<span style="color: #ff0000;">'t have an XML parser installed)<br />
$ cd /usr/local/src<br />
$ curl -O http://www.webdav.org/neon/neon-0.27.1.tar.gz<br />
$ tar zxvf neon-0.27.1.tar.gz<br />
$ cd neon-0.27.1<br />
$ ./configure --with-ssl --with-libs=/usr/local<br />
$ make<br />
$ sudo make install<br />
$ cd ..<br />
$ curl -O http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz<br />
$ curl -O http://subversion.tigris.org/downloads/subversion-deps-1.4.3.tar.gz<br />
$ tar xzvf subversion-1.4.3.tar.gz<br />
$ tar xzvf subversion-deps-1.4.3.tar.gz<br />
$ cd subversion-1.4.3<br />
$ ./configure --prefix=/usr/local --with-openssl --with-ssl --with-zlib --with-neon=/usr/local<br />
$ make<br />
$ sudo make install<br />
$ make swig-rb<br />
$ make check-swig-rb (Most of these test'</span>s should pass<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> install-swig-rb</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2007/11/01/installing-subversion-bindings-for-warehouse-app/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>
