<?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; RubyOnRails</title>
	<atom:link href="http://www.imarichardson.com/tag/rubyonrails/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>Apache and Mongrel frustrations: 502,  503, Operation Not Permitted,  Proxy Error, &amp; Connection Refused Errors</title>
		<link>http://www.imarichardson.com/2008/05/30/apache-and-mongrel-frustrations-502-503-operation-not-permitted-proxy-error-connection-refused-errors/</link>
		<comments>http://www.imarichardson.com/2008/05/30/apache-and-mongrel-frustrations-502-503-operation-not-permitted-proxy-error-connection-refused-errors/#comments</comments>
		<pubDate>Fri, 30 May 2008 16:38:53 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Programming &#038; Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[mongrel_cluster]]></category>
		<category><![CDATA[RubyOnRails]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/?p=212</guid>
		<description><![CDATA[
For a good deal of time I&#8217;ve been experiencing numerous problems relating to mongrel and mongrel_cluster. I&#8217;ve received proxy errors from my main site:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server

Apache/2.2.3 (Red Hat) Server at [myserver.com] Port [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.imarichardson.com/wp-content/uploads/proxy_error1.png'><img src="http://www.imarichardson.com/wp-content/uploads/proxy_error1-300x114.png" alt="" title="proxy_error no_name" width="300" height="114" class="aligncenter size-medium wp-image-214" /></a><br />
For a good deal of time I&#8217;ve been experiencing numerous problems relating to mongrel and mongrel_cluster. I&#8217;ve received proxy errors from my main site:</p>
<blockquote><p><strong>Proxy Error</strong><br />
The proxy server received an invalid response from an upstream server.<br />
The proxy server could not handle the request <em><a href="https://app_url/">GET /</a></em>.</p>
<p>Reason: <strong>Error reading from remote server</strong></p>
<hr />
<address>Apache/2.2.3 (Red Hat) Server at [myserver.com] Port 443</address>
</blockquote>
<p>And when viewing the log files I was receiving errors like:<br />
<br/></p>
<div class="codecolorer-container ruby vibrant" 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:#006600; font-weight:bold;">&#91;</span>Mon May 26 23:51:38 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>client xxx.<span style="color:#9900CC;">xxx</span>.<span style="color:#9900CC;">xxx</span>.<span style="color:#9900CC;">xxx</span><span style="color:#006600; font-weight:bold;">&#93;</span> client sent HTTP<span style="color:#006600; font-weight:bold;">/</span>1.1 request without hostname <span style="color:#006600; font-weight:bold;">&#40;</span>see RFC2616 section 14.23<span style="color:#006600; font-weight:bold;">&#41;</span>: <span style="color:#006600; font-weight:bold;">*</span><br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Wed May 28 08:59:49 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#40;</span>111<span style="color:#006600; font-weight:bold;">&#41;</span>Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8050 <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span> failed<br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Wed May 28 08:59:49 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> ap_proxy_connect_backend disabling worker <span style="color:#9966CC; font-weight:bold;">for</span> <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Wed May 28 08:59:49 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#40;</span>111<span style="color:#006600; font-weight:bold;">&#41;</span>Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8051 <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span> failed<br />
...<br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Wed May 28 09:00:39 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> proxy: BALANCER: <span style="color:#006600; font-weight:bold;">&#40;</span>balancer:<span style="color:#006600; font-weight:bold;">//</span>url_cluster<span style="color:#006600; font-weight:bold;">&#41;</span>. <span style="color:#9900CC;">All</span> workers are <span style="color:#9966CC; font-weight:bold;">in</span> error state<br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Fri May <span style="color:#006666;">30</span> 08:<span style="color:#006666;">15</span>:<span style="color:#006666;">10</span> <span style="color:#006666;">2008</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>client xxx.<span style="color:#9900CC;">xxx</span>.<span style="color:#9900CC;">xxx</span>.<span style="color:#9900CC;">xxx</span><span style="color:#006600; font-weight:bold;">&#93;</span> proxy: error reading status line from remote server 127.0.0.1<br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Fri May <span style="color:#006666;">30</span> 08:<span style="color:#006666;">15</span>:<span style="color:#006666;">10</span> <span style="color:#006666;">2008</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>client xxx.<span style="color:#9900CC;">xxx</span>.<span style="color:#9900CC;">xxx</span>.<span style="color:#9900CC;">xxx</span><span style="color:#006600; font-weight:bold;">&#93;</span> proxy: Error reading from remote server returned by <span style="color:#006600; font-weight:bold;">/</span> ...</div></div>
<p>And this, too: <em>(<a href="http://wiki.slicehost.com/doku.php?id=common_deprec_setup_errors">I tried these instructions too, but didn&#8217;t work.</a>)</em><br/></p>
<div class="codecolorer-container ruby vibrant" 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:#006600; font-weight:bold;">&#91;</span>Thu May 29 03:47:24 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#40;</span>111<span style="color:#006600; font-weight:bold;">&#41;</span>Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8000 <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span> failed <br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Thu May 29 03:47:24 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> ap_proxy_connect_backend disabling worker <span style="color:#9966CC; font-weight:bold;">for</span> <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span> <br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Thu May 29 03:47:24 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#40;</span>111<span style="color:#006600; font-weight:bold;">&#41;</span>Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8001 <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span> failed <br />
<span style="color:#006600; font-weight:bold;">&#91;</span>Thu May 29 03:47:24 2008<span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>error<span style="color:#006600; font-weight:bold;">&#93;</span> ap_proxy_connect_backend disabling worker <span style="color:#9966CC; font-weight:bold;">for</span> <span style="color:#006600; font-weight:bold;">&#40;</span>127.0.0.1<span style="color:#006600; font-weight:bold;">&#41;</span></div></div>
<p>Additionally, I received &#8220;Operation Not Permitted&#8221; errors when trying to restart and/or stop the mongrel clusters:</p>
<div class="codecolorer-container ruby vibrant" 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:#006600; font-weight:bold;">**</span> <span style="color:#006600; font-weight:bold;">&#91;</span>out :: 208.112.64.164<span style="color:#006600; font-weight:bold;">&#93;</span> Operation <span style="color:#9966CC; font-weight:bold;">not</span> permitted <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC00FF; font-weight:bold;">Errno</span>::EPERM<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp;<span style="color:#006600; font-weight:bold;">**</span> <span style="color:#006600; font-weight:bold;">&#91;</span>out :: 208.112.64.164<span style="color:#006600; font-weight:bold;">&#93;</span> from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>local<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span>1.8<span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span>mongrel<span style="color:#006600; font-weight:bold;">-</span>1.1.4<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mongrel_rails:200:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`send_signal'<br />
&nbsp;** [out :: 208.112.64.164] from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:240:in `</span>run<span style="color:#996600;">'<br />
&nbsp;** [out :: 208.112.64.164] from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/command.rb:212:in `run'</span><br />
&nbsp;<span style="color:#006600; font-weight:bold;">**</span> <span style="color:#006600; font-weight:bold;">&#91;</span>out :: 208.112.64.164<span style="color:#006600; font-weight:bold;">&#93;</span> from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>local<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ruby<span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span>1.8<span style="color:#006600; font-weight:bold;">/</span>gems<span style="color:#006600; font-weight:bold;">/</span>mongrel<span style="color:#006600; font-weight:bold;">-</span>1.1.4<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mongrel_rails:281<br />
&nbsp;<span style="color:#006600; font-weight:bold;">**</span> <span style="color:#006600; font-weight:bold;">&#91;</span>out :: 208.112.64.164<span style="color:#006600; font-weight:bold;">&#93;</span> from <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>local<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mongrel_rails:19:<span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#996600;">`load'<br />
&nbsp;** [out :: 208.112.64.164] from /usr/local/bin/mongrel_rails:19<br />
&nbsp;** [out :: 208.112.64.164] Sending TERM to Mongrel at PID 18429...</span></div></div>
<h2>Solution</h2>
<p>I was able to resolve the issue by killing all the active Mongrel processes and then restarting manually. You can do this by:<br/><br />
<strong>1. Viewing all active mongrel processes:</strong><br/></p>
<div class="codecolorer-container ruby vibrant" 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:#0066ff; font-weight:bold;">@imarichardson</span><span style="color:#006600; font-weight:bold;">&#93;</span>$ ps <span style="color:#006600; font-weight:bold;">-</span>aef <span style="color:#006600; font-weight:bold;">|</span> egrep mongrel<br />
root &nbsp; &nbsp; &nbsp;3156 &nbsp; &nbsp; 1 &nbsp;0 May15 ? &nbsp; &nbsp; &nbsp; &nbsp;00:00:03 <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>ruby <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mongrel_rails start <span style="color:#006600; font-weight:bold;">-</span>d <span style="color:#006600; font-weight:bold;">-</span>e production <span style="color:#006600; font-weight:bold;">-</span><span style="color:#CC0066; font-weight:bold;">p</span> 8090 <span style="color:#006600; font-weight:bold;">-</span>a 127.0.0.1 <span style="color:#006600; font-weight:bold;">-</span><span style="color:#CC0066; font-weight:bold;">P</span> log<span style="color:#006600; font-weight:bold;">/</span>mongrel.8090.<span style="color:#9900CC;">pid</span> <span style="color:#006600; font-weight:bold;">-</span>c <span style="color:#006600; font-weight:bold;">/</span>var<span style="color:#006600; font-weight:bold;">/</span>www<span style="color:#006600; font-weight:bold;">/</span>apps<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006600; font-weight:bold;">&#91;</span>app_directory<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">/</span>current<br />
root &nbsp; &nbsp; &nbsp;3159 &nbsp; &nbsp; 1 &nbsp;0 May15 ? &nbsp; &nbsp; &nbsp; &nbsp;00:00:02 <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>ruby <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mongrel_rails start <span style="color:#006600; font-weight:bold;">-</span>d <span style="color:#006600; font-weight:bold;">-</span>e production <span style="color:#006600; font-weight:bold;">-</span><span style="color:#CC0066; font-weight:bold;">p</span> 8091 <span style="color:#006600; font-weight:bold;">-</span>a 127.0.0.1 <span style="color:#006600; font-weight:bold;">-</span><span style="color:#CC0066; font-weight:bold;">P</span> log<span style="color:#006600; font-weight:bold;">/</span>mongrel.8091.<span style="color:#9900CC;">pid</span> <span style="color:#006600; font-weight:bold;">-</span>c <span style="color:#006600; font-weight:bold;">/</span>var<span style="color:#006600; font-weight:bold;">/</span>www<span style="color:#006600; font-weight:bold;">/</span>apps<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006600; font-weight:bold;">&#91;</span>app_directory<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">/</span>current</div></div>
<p>(The second number is the process id; that is the id you&#8217;ll use to kill the process.)<br />
<br/><br />
<strong>2. Killing each process id</strong> <br/><br />
&#8220;sudo kill -9 [process id]&#8220;, For example, to kill the first process listed above:<br />
<br/></p>
<div class="codecolorer-container ruby vibrant" 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:#0066ff; font-weight:bold;">@imarichardson</span><span style="color:#006600; font-weight:bold;">&#93;</span>$ sudo kill <span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">9</span> <span style="color:#006666;">8090</span></div></div>
<p><br/><br />
<strong>3. Restarting your Mongrel instances</strong><br/></p>
<div class="codecolorer-container ruby vibrant" 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:#0066ff; font-weight:bold;">@imarichardson</span><span style="color:#006600; font-weight:bold;">&#93;</span>$ sudo &nbsp;mongrel_rails cluster::restart <span style="color:#006600; font-weight:bold;">--</span>clean <span style="color:#006600; font-weight:bold;">-</span>C <span style="color:#006600; font-weight:bold;">/</span>var<span style="color:#006600; font-weight:bold;">/</span>www<span style="color:#006600; font-weight:bold;">/</span>apps<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006600; font-weight:bold;">&#91;</span>app_directory<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">/</span>current<span style="color:#006600; font-weight:bold;">/</span>config<span style="color:#006600; font-weight:bold;">/</span>mongrel_cluster.<span style="color:#9900CC;">yml</span></div></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2008/05/30/apache-and-mongrel-frustrations-502-503-operation-not-permitted-proxy-error-connection-refused-errors/feed/</wfw:commentRss>
		<slash:comments>1</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>31</slash:comments>
		</item>
		<item>
		<title>12 Profile Shortcuts I can&#8217;t live without</title>
		<link>http://www.imarichardson.com/2007/10/09/12-profile-shortcuts-i-cant-live-without/</link>
		<comments>http://www.imarichardson.com/2007/10/09/12-profile-shortcuts-i-cant-live-without/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 14:59:51 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Programming &#038; Development]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[RubyOnRails]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/2007/10/09/12-profile-shortcuts-i-cant-live-without/</guid>
		<description><![CDATA[If you&#8217;re a developer on a Mac or Linux box, building in Rails using Capistrano like me you can get really tired of having to &#8220;cd&#8221; to a 25 character long directory path 10 times a day while running all your script/&#8221;whatevers&#8221; while you work. Well, here&#8217;s my list of 12 shortcuts I can&#8217;t live [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.imarichardson.com/wp-content/uploads/rails.png" alt="Rails" align="right" />If you&#8217;re a developer on a Mac or Linux box, building in Rails using Capistrano like me you can get really tired of having to &#8220;cd&#8221; to a 25 character long directory path 10 times a day while running all your script/&#8221;whatevers&#8221; while you work. Well, here&#8217;s my list of 12 shortcuts I can&#8217;t live without.</p>
<p>If you&#8217;re on a Mac, you&#8217;ll need to edit your &#8220;/etc/profile&#8221; page and then type these in, so something like &#8220;$textedit /etc/profile&#8221; or  &#8220;$ mate /etc/profile&#8221; (if you are using <a href="http://macromates.com/">TextMate</a>) from your Terminal window will open your system profile.</p>
<div class="codecolorer-container ruby 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 /></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:#008000; font-style:italic;"># /directories</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> gotoMyDir=<span style="color:#996600;">&quot;cd /Some/Path/To/A/Frequently/Accessed_Directory&quot;</span><br />
<br />
<span style="color:#008000; font-style:italic;"># Rails</span><br />
<span style="color:#008000; font-style:italic;">#The next shortcut only opens up the rails directories I care about using TextMate</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> matedir=<span style="color:#996600;">&quot;mate app config lib db public test vendor/plugins &amp;amp;&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> ss=<span style="color:#996600;">&quot;./script/server&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> sc=<span style="color:#996600;">&quot;./script/console&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> sg=<span style="color:#996600;">&quot;./script/generate&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> sp=<span style="color:#996600;">&quot;./script/plugin&quot;</span><br />
<br />
<span style="color:#008000; font-style:italic;">#Rails Capistrano ... yes, I am using Capistrano 1.4.1 instead of 2.x</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> capd=<span style="color:#996600;">&quot;cap _1.4.1_ deploy&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> capdm=<span style="color:#996600;">&quot;cap _1.4.1_ deploy_with_migrations&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> capapache=<span style="color:#996600;">&quot;cap _1.4.1_ restart_apache&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> caprestart=<span style="color:#996600;">&quot;cap _1.4.1_ restart_mongrel_cluster&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> capstart=<span style="color:#996600;">&quot;cap _1.4.1_ start_mongrel_cluster&quot;</span><br />
<span style="color:#9966CC; font-weight:bold;">alias</span> capstop=<span style="color:#996600;">&quot;cap _1.4.1_ stop_mongrel_cluster&quot;</span></div></td></tr></tbody></table></div>
<p>Now what&#8217;s nice is that f I want to visit &#8220;my directory&#8221;, while in the terminal I just type&#8221;$ gotoMyDir&#8221;; if I need to run a capistrano &#8220;deploy_with_migrations&#8221; script (yes, I&#8217;m using 1.4.1 until a few more 2.0 updates finalize) I just type in &#8220;$ capdm&#8221; &#8230; you get the picture.</p>
<p>Nice indeed, and saves the keys!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2007/10/09/12-profile-shortcuts-i-cant-live-without/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
