<?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; bindings</title>
	<atom:link href="http://www.imarichardson.com/tag/bindings/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>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>
	</channel>
</rss>
