<?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>Penguin on Rails &#187; Ruby</title>
	<atom:link href="http://www.cherpec.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cherpec.com</link>
	<description>linux + ruby on rails = love</description>
	<lastBuildDate>Thu, 17 Jun 2010 14:06:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Count internal and external links in a page</title>
		<link>http://www.cherpec.com/2010/06/count-internal-and-external-links-in-a-page/</link>
		<comments>http://www.cherpec.com/2010/06/count-internal-and-external-links-in-a-page/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 14:06:12 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[links count]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=672</guid>
		<description><![CDATA[Today I&#8217;ve readed the Webmaster Guidelines, in the &#8220;Design and content guidelines&#8221; section Google recommends to keep  a resonable number of links in the page:
Keep the links on a given page to a reasonable number.
Mat Cutts talks about 100 links/page. 
Hmm, how many links do I have in my pages ? I&#8217;ve made a [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve readed the <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35769">Webmaster Guidelines</a>, in the &#8220;Design and content guidelines&#8221; section Google recommends to keep  a resonable number of links in the page:</p>
<blockquote><p>Keep the links on a given page to a reasonable number.</p></blockquote>
<p><a href="http://www.mattcutts.com/blog/how-many-links-per-page/">Mat Cutts</a> talks about <a href="http://www.mattcutts.com/blog/how-many-links-per-page/">100 links</a>/page. </p>
<p>Hmm, how many links do I have in my pages ? I&#8217;ve made a simple Ruby script to count links in a page (<a href="http://nokogiri.org/">Nokogiri</a>, <a href="http://github.com/pauldix/domainatrix">Domainatrix</a> and Open-Uri made it trivial):</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;">#!/usr/bin/env ruby</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;rubygems&quot;</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;nokogiri&quot;</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;open-uri&quot;</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'domainatrix'</span>
&nbsp;
url = ARGV.<span style="color:#9900CC;">first</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">raise</span> <span style="color:#996600;">&quot;*** Use: links_count &lt;url&gt;&quot;</span> <span style="color:#9966CC; font-weight:bold;">unless</span> url
&nbsp;
domain = Domainatrix.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span>url<span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
int_links = <span style="color:#006666;">0</span>
ext_links = <span style="color:#006666;">0</span>
&nbsp;
doc = <span style="color:#6666ff; font-weight:bold;">Nokogiri::HTML</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span>url<span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">read</span><span style="color:#006600; font-weight:bold;">&#41;</span>
doc.<span style="color:#9900CC;">xpath</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;//a[@href]&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>node<span style="color:#006600; font-weight:bold;">|</span>
  link = node.<span style="color:#9900CC;">get_attribute</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'href'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">if</span> link =~ <span style="color:#006600; font-weight:bold;">%</span>r<span style="color:#006600; font-weight:bold;">&#123;</span>\Ahttp:<span style="color:#006600; font-weight:bold;">//</span><span style="color:#006600; font-weight:bold;">&#125;</span>
    l = Domainatrix.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span>link<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">if</span> l.<span style="color:#9900CC;">public_suffix</span> == domain.<span style="color:#9900CC;">public_suffix</span> <span style="color:#9966CC; font-weight:bold;">and</span> l.<span style="color:#9900CC;">domain</span> == domain.<span style="color:#9900CC;">domain</span>
      int_links <span style="color:#006600; font-weight:bold;">+</span>= <span style="color:#006666;">1</span>
    <span style="color:#9966CC; font-weight:bold;">else</span>
      ext_links <span style="color:#006600; font-weight:bold;">+</span>= <span style="color:#006666;">1</span>
      <span style="color:#CC0066; font-weight:bold;">puts</span> link
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">else</span>
    int_links <span style="color:#006600; font-weight:bold;">+</span>= <span style="color:#006666;">1</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;&quot;</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;*** internal links: #{int_links}&quot;</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;*** external links: #{ext_links}&quot;</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;*** total: #{int_links + ext_links}&quot;</span></pre></div></div>

<p>Now I can see how many internal/external links contains a page. Example for CNN.com:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>vitalie<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ links_count.rb http:<span style="color: #000000; font-weight: bold;">//</span>www.cnn.com
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnnmexico.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.ireport.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.time.com<span style="color: #000000; font-weight: bold;">/</span>time<span style="color: #000000; font-weight: bold;">/</span>world<span style="color: #000000; font-weight: bold;">/</span>article<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>,<span style="color: #000000;">8599</span>,<span style="color: #000000;">1997325</span>,00.html
http:<span style="color: #000000; font-weight: bold;">//</span>www.ireport.com<span style="color: #000000; font-weight: bold;">/</span>docs<span style="color: #000000; font-weight: bold;">/</span>DOC-<span style="color: #000000;">459640</span>?<span style="color: #007800;">hpt</span>=Mid
http:<span style="color: #000000; font-weight: bold;">//</span>www.ireport.com<span style="color: #000000; font-weight: bold;">/</span>docs<span style="color: #000000; font-weight: bold;">/</span>DOC-<span style="color: #000000;">459640</span>?<span style="color: #007800;">hpt</span>=Mid
http:<span style="color: #000000; font-weight: bold;">//</span>www.ireport.com<span style="color: #000000; font-weight: bold;">/</span>?<span style="color: #007800;">hpt</span>=Sbin
http:<span style="color: #000000; font-weight: bold;">//</span>twitter.com<span style="color: #000000; font-weight: bold;">/</span>worldcupcnn
http:<span style="color: #000000; font-weight: bold;">//</span>foursquare.com<span style="color: #000000; font-weight: bold;">/</span>cnn
http:<span style="color: #000000; font-weight: bold;">//</span>movie-critics.ew.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2010</span><span style="color: #000000; font-weight: bold;">/</span>06<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span>psycho-turns-<span style="color: #000000;">50</span>-today<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnngo.com<span style="color: #000000; font-weight: bold;">/</span>hong-kong<span style="color: #000000; font-weight: bold;">/</span>play<span style="color: #000000; font-weight: bold;">/</span>beyond-star-ferry-<span style="color: #000000;">457619</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnngo.com<span style="color: #000000; font-weight: bold;">/</span>bangkok<span style="color: #000000; font-weight: bold;">/</span>play<span style="color: #000000; font-weight: bold;">/</span>spirited-competition-koh-samui-regatta-<span style="color: #000000;">706618</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.ireport.com<span style="color: #000000; font-weight: bold;">/</span>?<span style="color: #007800;">cnn</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.turnerstoreonline.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnntraveller.com
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnnchile.com
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnnmexico.com
http:<span style="color: #000000; font-weight: bold;">//</span>cnn.joins.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnn.co.jp<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnnturk.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.turner.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.cnnmediainfo.com<span style="color: #000000; font-weight: bold;">/</span>
http:<span style="color: #000000; font-weight: bold;">//</span>www.turner.com<span style="color: #000000; font-weight: bold;">/</span>careers<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">***</span> internal links: <span style="color: #000000;">263</span>
<span style="color: #000000; font-weight: bold;">***</span> external links: <span style="color: #000000;">22</span>
<span style="color: #000000; font-weight: bold;">***</span> total: <span style="color: #000000;">285</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2010/06/count-internal-and-external-links-in-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto install RMagick 2 on CentOS/RHEL 5</title>
		<link>http://www.cherpec.com/2009/10/howto-install-rmagick-2-on-centosrhel-5/</link>
		<comments>http://www.cherpec.com/2009/10/howto-install-rmagick-2-on-centosrhel-5/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 17:21:00 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Centos Plus]]></category>
		<category><![CDATA[Dag]]></category>
		<category><![CDATA[epel]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[RMagick]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[RPMForge]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=525</guid>
		<description><![CDATA[Installing RMagick 2 on CentOS/RHEL 5 it&#8217;s not that hard, you just need to install ImageMagick  newer than 6.3.5 (CentOS/RHEL 5 is shipping ImageMagick 6.2.8) and  that&#8217;s the hardest part of the job.

&#91;root@silver ~&#93;# gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
     [...]]]></description>
			<content:encoded><![CDATA[<p>Installing RMagick 2 on CentOS/RHEL 5 it&#8217;s not that hard, you just need to install ImageMagick  newer than 6.3.5 (CentOS/RHEL 5 is shipping ImageMagick 6.2.8) and  that&#8217;s the hardest part of the job.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install rmagick</span>
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby extconf.rb
checking <span style="color: #000000; font-weight: bold;">for</span> Ruby version <span style="color: #000000; font-weight: bold;">&gt;</span>= 1.8.5... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gcc... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> Magick-config... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> ImageMagick version <span style="color: #000000; font-weight: bold;">&gt;</span>= 6.3.5... no
Can<span style="color: #ff0000;">'t install RMagick 2.12.2. You must have ImageMagick 6.3.5 or later.</span></pre></div></div>

<p>I&#8217;ve tried to avoid ImageMagick upgrade and to <a href="http://www.cherpec.com/2008/08/howto-install-rmagick-on-centos-4/">install RMagick 1</a>, but RMagick 1 failed to install with a strange compile error, probably because the gcc compliler shipped with CentOS/RHEL 5 is too new for version 1. </p>
<p>I didn&#8217;t wanted to patch RMagick 1, neither to install from sources (I do prefer RPM packages). So, I&#8217;ve decided to upgrade ImageMagick library to satisfy RMagick 2 requirements.</p>
<p>Subscribe your system to the following repositories:</p>
<ul>
<li><a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-20e1f65f19ccf2f5fbf5adb30dbaf5ea963a64ae">RPMforge</a></li>
<li><a href="http://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus#head-ef9d75ccc01fef919e07b65d8e390d3c91e5e993">Centos Plus</a></li>
<li><a href="http://fedoraproject.org/wiki/EPEL/FAQ#howtouse">EPEL</a></li>
</ul>
<p>Install the following packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum --enablerepo=epel --enablerepo=rpmforge --enablerepo=centosplus install djvulibre-devel libwmf-devel jasper-devel libtool-ltdl-devel librsvg2-devel openexr-devel graphviz-devel gcc gcc-c++ ghostscript freetype-devel libjpeg-devel libpng-devel giflib-devel libwmf-devel libexif-devel libtiff-devel</span></pre></div></div>

<p>Add &#8220;&#8211;noplugins&#8221; if you are using &#8220;yum-priorities&#8221;, or it will fail to install packages.</p>
<p>Download <a href='http://www.cherpec.com/wp-content/uploads/2009/10/ImageMagick.spec'>ImageMagick.spec</a> to your SPECS directory and <a href="ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.7-0.tar.bz2">ImageMagick-6.5.7-0.tar.bz2</a> to SOURCES directory and then rebuild the rpm using rpmbuild:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver SPECS<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpmbuild -ba ImageMagick.spec</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Or just grab the source RPM from here:<br />
<a href="http://red.penguin.ro/SRPMS/ImageMagick-6.5.7-0.src.rpm">http://red.penguin.ro/SRPMS/ImageMagick-6.5.7-0.src.rpm</a></p>
<p>and build it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpmbuild --rebuild ImageMagick-6.5.7-0.src.rpm </span>
Installing ImageMagick-6.5.7-0.src.rpm
warning: user vitalie does not exist - using root
warning: group vitalie does not exist - using root
warning: user vitalie does not exist - using root
warning: group vitalie does not exist - using root
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">%</span>prep<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.11936
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #007800;">LANG</span>=C
+ <span style="color: #7a0874; font-weight: bold;">export</span> LANG
+ <span style="color: #7a0874; font-weight: bold;">unset</span> DISPLAY
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> ImageMagick-6.5.7-<span style="color: #000000;">0</span>
+ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #660033;">-dc</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>SOURCES<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-6.5.7-0.tar.bz2
+ <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> -
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>rpmlib<span style="color: #7a0874; font-weight: bold;">&#41;</span>: rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>CompressedFileNames<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.4-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>PayloadFilesHavePrefix<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">4.0</span>-<span style="color: #000000;">1</span>
Requires: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> ImageMagick-c++ = 6.5.7-<span style="color: #000000;">0</span> ImageMagick-devel = 6.5.7-<span style="color: #000000;">0</span> libMagick++.so.2<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Processing files: ImageMagick-debuginfo-6.5.7-<span style="color: #000000;">0</span>
Provides: Magick.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> analyze.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> art.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> avi.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> avs.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> bmp.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> braille.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> cals.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> caption.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> cin.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> cip.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> clip.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> cmyk.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> cut.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dcm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dds.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dib.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> djvu.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dng.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dot.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dpx.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ept.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> fax.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> fits.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> gif.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> gradient.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> gray.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> hald.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> histogram.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> hrz.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> html.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> icon.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> info.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> inline.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ipl.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> jp2.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> jpeg.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> label.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libMagick++.so.2.0.0.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libMagickCore.so.2.0.0.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libMagickWand.so.2.0.0.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> magick.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> map.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mat.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> matte.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> meta.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> miff.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mono.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mpc.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mpeg.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mpr.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> msl.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mtv.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> mvg.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> null.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> otb.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> palm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pattern.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pcd.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pcl.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pcx.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pdb.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pdf.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pict.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pix.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> plasma.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> png.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pnm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> preview.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ps.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ps2.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ps3.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> psd.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pwp.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> raw.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> rgb.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> rla.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> rle.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> scr.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sct.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sfw.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sgi.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> stegano.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sun.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> svg.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> tga.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> thumbnail.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> tiff.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> tile.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> tim.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ttf.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> txt.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> uil.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> url.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> uyvy.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> vicar.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> vid.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> viff.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> wbmp.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> wmf.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> wpg.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> x.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> xbm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> xc.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> xcf.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> xpm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> xps.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> xwd.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ycbcr.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> yuv.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>rpmlib<span style="color: #7a0874; font-weight: bold;">&#41;</span>: rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>CompressedFileNames<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.4-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>PayloadFilesHavePrefix<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">4.0</span>-<span style="color: #000000;">1</span>
Checking <span style="color: #000000; font-weight: bold;">for</span> unpackaged <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>check-files <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-6.5.7-<span style="color: #000000;">0</span>-root-root
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-6.5.7-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-devel-6.5.7-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-doc-6.5.7-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-perl-6.5.7-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-c++-6.5.7-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-c++-devel-6.5.7-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-debuginfo-6.5.7-0.x86_64.rpm
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">%</span>clean<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.25482
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #7a0874; font-weight: bold;">cd</span> ImageMagick-6.5.7-<span style="color: #000000;">0</span>
+ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-6.5.7-<span style="color: #000000;">0</span>-root-root
+ <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span>--clean<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.25482
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>worf<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> ImageMagick-6.5.7-<span style="color: #000000;">0</span>
+ <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Uninstall i386 ImageMagick libraries if you are on x86_64 system:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -qa | grep ImageMagick | grep -i i386 | xargs rpm -e</span></pre></div></div>

<p>Install the new RPMs compiled in the  previous steps:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver x86_64<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rpm -Uvh ImageMagick-6.5.7-0.x86_64.rpm ImageMagick-c++-6.5.7-0.x86_64.rpm ImageMagick-c++-devel-6.5.7-0.x86_64.rpm ImageMagick-devel-6.5.7-0.x86_64.rpm</span></pre></div></div>

<p>Finally, install the RMagick 2 plugin:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install rmagick --no-rdoc --no-ri</span>
Building native extensions.  This could take a while...
Successfully installed rmagick-2.12.2
<span style="color: #000000;">1</span> gem installed</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/10/howto-install-rmagick-2-on-centosrhel-5/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Ruby Enterprise Edition 1.8.7 source RPM for CentOS5 / RHEL5</title>
		<link>http://www.cherpec.com/2009/10/ruby-enterprise-edition-1-8-7-source-rpm-for-centos5-rhel5/</link>
		<comments>http://www.cherpec.com/2009/10/ruby-enterprise-edition-1-8-7-source-rpm-for-centos5-rhel5/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:27:08 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ree]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rhel5]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[ruby enterprise]]></category>
		<category><![CDATA[src]]></category>
		<category><![CDATA[src.rpm]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=504</guid>
		<description><![CDATA[Ruby Enterprise Edition is a server-oriented friendly branch of Ruby which includes various enhancements:
    * A copy-on-write friendly garbage collector. Phusion Passenger uses this, in combination with a technique called preforking, to reduce Ruby on Rails applications&#8217; memory usage by 33% on average.
    * An improved memory allocator called [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby Enterprise Edition is a server-oriented friendly branch of Ruby which includes various enhancements:</p>
<p>    * A copy-on-write friendly garbage collector. Phusion Passenger uses this, in combination with a technique called preforking, to reduce Ruby on Rails applications&#8217; memory usage by 33% on average.<br />
    * An improved memory allocator called tcmalloc, which improves performance quite a bit.<br />
    * The ability to tweak garbage collector settings for maximum server performance, and the ability to inspect the garbage collector&#8217;s state. (RailsBench GC patch)<br />
    * The ability to dump stack traces for all running threads (caller_for_all_threads), making it easier for one to debug multithreaded Ruby web applications.</p>
<p>More on Ruby Enterprise Edition&#8217;s website:<br />
<a href="http://www.rubyenterpriseedition.com/">http://www.rubyenterpriseedition.com/</a></p>
<p>Download source rpm:<br />
<a href='http://www.cherpec.com/wp-content/uploads/2009/10/ruby-enterprise-1.8.7-1.el5.src.rpm'>ruby-enterprise-1.8.7-1.el5.src.rpm</a></p>
<p>Build rpm package using rpmbuild:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>vitalie<span style="color: #000000; font-weight: bold;">@</span>silver SRPMS<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ rpmbuild <span style="color: #660033;">--rebuild</span> <span style="color: #660033;">--define</span> <span style="color: #ff0000;">'dist el5'</span> ruby-enterprise-1.8.7-1.el5.src.rpm 
Installing ruby-enterprise-1.8.7-1.el5.src.rpm
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">%</span>prep<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.89437
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #007800;">LANG</span>=C
+ <span style="color: #7a0874; font-weight: bold;">export</span> LANG
+ <span style="color: #7a0874; font-weight: bold;">unset</span> DISPLAY
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>
+ <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-dc</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>SOURCES<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.7-20090928.tar.gz
+ <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> -
+ <span style="color: #007800;">STATUS</span>=<span style="color: #000000;">0</span>
+ <span style="color: #ff0000;">'['</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">0</span> <span style="color: #ff0000;">']'</span>
+ <span style="color: #7a0874; font-weight: bold;">cd</span> ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>
++ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">id</span> <span style="color: #660033;">-u</span>
+ <span style="color: #ff0000;">'['</span> <span style="color: #000000;">500</span> = <span style="color: #000000;">0</span> <span style="color: #ff0000;">']'</span>
++ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">id</span> <span style="color: #660033;">-u</span>
+ <span style="color: #ff0000;">'['</span> <span style="color: #000000;">500</span> = <span style="color: #000000;">0</span> <span style="color: #ff0000;">']'</span>
+ <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-Rf</span> a+rX,u+<span style="color: #c20cb9; font-weight: bold;">w</span>,g-w,o-w .
+ <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">%</span>build<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.89437
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #7a0874; font-weight: bold;">cd</span> ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>
+ <span style="color: #007800;">LANG</span>=C
+ <span style="color: #7a0874; font-weight: bold;">export</span> LANG
+ <span style="color: #7a0874; font-weight: bold;">unset</span> DISPLAY
+ .<span style="color: #000000; font-weight: bold;">/</span>installer <span style="color: #660033;">--auto</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> <span style="color: #660033;">--dont-install-useful-gems</span> <span style="color: #660033;">--destdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>-root-vitalie
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Provides: ruby-enterprise<span style="color: #7a0874; font-weight: bold;">&#40;</span>rubygems<span style="color: #7a0874; font-weight: bold;">&#41;</span> = 1.3.2
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>interp<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span>
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>rpmlib<span style="color: #7a0874; font-weight: bold;">&#41;</span>: rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>CompressedFileNames<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.4-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>PayloadFilesHavePrefix<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">4.0</span>-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>VersionedDependencies<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.3-<span style="color: #000000;">1</span>
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>pre<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span>
Requires: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby ruby-enterprise <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">1.8</span>
Processing files: ruby-enterprise-debuginfo-1.8.7-1.el5
Provides: bigdecimal.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> bubblebabble.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> cparse.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> curses.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dbm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> digest.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> dl.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> etc.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> fcntl.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> gdbm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> iconv.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libtcmalloc_minimal.so.0.0.0.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> md5.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> nkf.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> openssl.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> pty.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> readline.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> rmd160.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sdbm.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sha1.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> sha2.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> socket.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> stringio.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> strscan.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> syck.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> syslog.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> thread.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> wait.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> zlib.so.debug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>rpmlib<span style="color: #7a0874; font-weight: bold;">&#41;</span>: rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>CompressedFileNames<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.4-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>PayloadFilesHavePrefix<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">4.0</span>-<span style="color: #000000;">1</span>
Checking <span style="color: #000000; font-weight: bold;">for</span> unpackaged <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>check-files <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>-root-vitalie
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.7-1.el5.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-rubygems-1.3.2-1.el5.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-debuginfo-1.8.7-1.el5.x86_64.rpm
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">%</span>clean<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.76776
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #7a0874; font-weight: bold;">cd</span> ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>
+ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>-root-vitalie
+ <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span>--clean<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.76776
+ <span style="color: #7a0874; font-weight: bold;">umask</span> 022
+ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>BUILD
+ <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> ruby-enterprise-1.8.7-<span style="color: #000000;">20090928</span>
+ <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Alternatively you can download just spec file and grab sources from the REE&#8217;s website:<br />
<a href='http://www.cherpec.com/wp-content/uploads/2009/10/ruby-enterprise.spec'>ruby-enterprise.spec</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/10/ruby-enterprise-edition-1-8-7-source-rpm-for-centos5-rhel5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PageActions Plugin released</title>
		<link>http://www.cherpec.com/2009/09/pageactions-plugin-released/</link>
		<comments>http://www.cherpec.com/2009/09/pageactions-plugin-released/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:23:14 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[PageActions]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=399</guid>
		<description><![CDATA[I&#8217;ve just released PageActions plugin on GitHub. It&#8217;s a really simple Rails plugin, but it helps you to easy define and render actions links in your views. You can view installation and usage instructions on GitHub:

http://github.com/vitalie/page_actions
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just released <a href="http://github.com/vitalie/page_actions">PageActions</a> plugin on <a href="http://github.com">GitHub</a>. It&#8217;s a really simple <a href="http://rubyonrails.org/">Rails</a> plugin, but it helps you to easy define and render actions links in your views. You can view installation and usage instructions on GitHub:</p>
<p><a href="http://github.com/vitalie/page_actions"><br />
http://github.com/vitalie/page_actions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/09/pageactions-plugin-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iteration over large data sets in Rails</title>
		<link>http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/</link>
		<comments>http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 12:07:42 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[data set]]></category>
		<category><![CDATA[iteration]]></category>
		<category><![CDATA[large]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=348</guid>
		<description><![CDATA[We often need to iterate over the database rows in our migrations. When dealing with millions of records, basic iteration techniques doesn&#8217;t work well because each loaded object is consuming system memory and it issues at least one database query per object to load.

# &#62;&#62; Book.count :all
# =&#62; 4000216

Solution 1

class BooksUpdateTitles &#60; ActiveRecord::Migration
  def [...]]]></description>
			<content:encoded><![CDATA[<p>We often need to iterate over the database rows in our migrations. When dealing with millions of records, basic iteration techniques doesn&#8217;t work well because each loaded object is consuming system memory and it issues at least one database query per object to load.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># &gt;&gt; Book.count :all</span>
<span style="color:#008000; font-style:italic;"># =&gt; 4000216</span></pre></div></div>

<p><strong>Solution 1</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> BooksUpdateTitles <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Migration</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">up</span>
    Books.<span style="color:#9900CC;">all</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>book<span style="color:#006600; font-weight:bold;">|</span>
      <span style="color:#008000; font-style:italic;"># ...</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">down</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>The problem with this version is that it will load all 4000216 objects into memory, all memory will be consumed and it will start to use disk swap and it will take hours to complete. </p>
<p>We can optimize it a little bit by specifying <strong>select</strong> parameter in our query:</p>
<p><strong>Solution 2</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">Books.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:all</span>, <span style="color:#ff3333; font-weight:bold;">:select</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'id'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>t<span style="color:#006600; font-weight:bold;">|</span>
  book = Book.<span style="color:#9900CC;">find</span> t.<span style="color:#9900CC;">id</span>
  <span style="color:#008000; font-style:italic;"># ...</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Version 2 still loads all objects in memory but selects only <strong>id</strong> field.</p>
<p>We need to avoid loading all objects in the memory, we&#8217;ll iterate over collection and we&#8217;ll load only current object.</p>
<p><strong>Solution 3</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">last_id = <span style="color:#006666;">0</span>
<span style="color:#9966CC; font-weight:bold;">while</span> book = Books.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:first</span>, <span style="color:#ff3333; font-weight:bold;">:conditions</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'id &gt; ?'</span>, last_id<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#008000; font-style:italic;"># ...</span>
  last_id = book.<span style="color:#9900CC;">id</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Version 3 it&#8217;s OK, but it can be speed up by loading objects in batch  not just one by one.</p>
<p><strong>Solution 4</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">last_id = <span style="color:#006666;">0</span>
<span style="color:#9966CC; font-weight:bold;">while</span> books = Book.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:all</span>, <span style="color:#ff3333; font-weight:bold;">:conditions</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'id &gt; ?'</span>, last_id<span style="color:#006600; font-weight:bold;">&#93;</span>, <span style="color:#ff3333; font-weight:bold;">:limit</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#008000; font-style:italic;"># ...</span>
  last_id = books.<span style="color:#9900CC;">last</span>.<span style="color:#9900CC;">id</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Examining the log:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #66cc66;">...</span>
Domain <span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.000176</span><span style="color: #66cc66;">&#41;</span>  <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`books`</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#40;</span>id <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">100</span>
<span style="color: #66cc66;">...</span></pre></div></div>

<p>We have loaded 100 objects with one query. Solution 4 seems to be the best solution to iterate over large data sets as it uses less memory with fewer SQL requests.</p>
<p><strong>Update:</strong></p>
<p><a href="http://mitchellhashimoto.com/">Mitchell</a> proposed a better solution to use ActiveRecord&#8217;s <strong>find_in_batches</strong> method. DHH commited this feature on February 23, 2009 that permits iterating over large data sets in batches:</p>
<p>Read more:<br />
<a href="http://webonrails.com/2009/02/23/edge-rails-activerecordbaseeach-and-activerecordbasefind_in_batches-for-batch-processing/">WebOnRails</a><br />
<a href="http://github.com/rails/rails/blob/45787bdd0e9ec20b111e570a20b5f66a949b400c/activerecord/lib/active_record/batches.rb">GitHub</a></p>
<p><strong>Solution 5</strong></p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">Book.<span style="color:#9900CC;">find_in_batches</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:batch_size</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>results<span style="color:#006600; font-weight:bold;">|</span>
<span style="color:#008000; font-style:italic;"># Do something with results</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/07/iteration-over-large-data-sets-in-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hpricot 0.8.1 on ruby 1.8.5</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/</link>
		<comments>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 15:18:34 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[RubyGems]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=332</guid>
		<description><![CDATA[Installing latest Hpricot on ruby 1.8.5 fails due missing macro RARRAYPTR:

&#91;root@silver ~&#93;# gem install hpricot
Building native extensions.  This could take a while...
ERROR:  Error installing hpricot:
        ERROR: Failed to build gem native extension.
&#160;
/usr/bin/ruby extconf.rb
checking for main&#40;&#41; in -lc... yes
creating Makefile
&#160;
make
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.  -fPIC -O2 [...]]]></description>
			<content:encoded><![CDATA[<p>Installing latest Hpricot on ruby 1.8.5 fails due missing macro RARRAYPTR:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install hpricot</span>
Building native extensions.  This could take a while...
ERROR:  Error installing hpricot:
        ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby extconf.rb
checking <span style="color: #000000; font-weight: bold;">for</span> main<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lc... <span style="color: #c20cb9; font-weight: bold;">yes</span>
creating Makefile
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">gcc</span> -I. -I. -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>x86_64-linux -I.  <span style="color: #660033;">-fPIC</span> <span style="color: #660033;">-O2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-pipe</span> <span style="color: #660033;">-Wall</span> -Wp,-D_FORTIFY_SOURCE=<span style="color: #000000;">2</span> <span style="color: #660033;">-fexceptions</span> <span style="color: #660033;">-fstack-protector</span> <span style="color: #660033;">--param</span>=ssp-buffer-size=<span style="color: #000000;">4</span> <span style="color: #660033;">-m64</span> <span style="color: #660033;">-mtune</span>=generic <span style="color: #660033;">-Wall</span> <span style="color: #660033;">-fno-strict-aliasing</span>  <span style="color: #660033;">-fPIC</span>  <span style="color: #660033;">-c</span> hpricot_css.c
hpricot_css.rl: In <span style="color: #000000; font-weight: bold;">function</span> ‘hpricot_css’:
hpricot_css.rl:<span style="color: #000000;">106</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> ‘RSTRING_PTR’
hpricot_css.rl:<span style="color: #000000;">106</span>: warning: assignment makes pointer from integer without a cast
hpricot_css.rl:<span style="color: #000000;">107</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> ‘RSTRING_LEN’
hpricot_css.rl:<span style="color: #000000;">82</span>: warning: field precision should have <span style="color: #7a0874; font-weight: bold;">type</span> ‘int’, but argument <span style="color: #000000;">5</span> has <span style="color: #7a0874; font-weight: bold;">type</span> ‘long int’
hpricot_css.c:<span style="color: #000000;">295</span>: warning: comparison is always <span style="color: #c20cb9; font-weight: bold;">true</span> due to limited range of data <span style="color: #7a0874; font-weight: bold;">type</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
hpricot_css.c:<span style="color: #000000;">3403</span>: warning: comparison between pointer and integer
hpricot_css.c:<span style="color: #000000;">3403</span>: warning: ‘eof’ is used uninitialized <span style="color: #000000; font-weight: bold;">in</span> this <span style="color: #000000; font-weight: bold;">function</span>
hpricot_css.rl:<span style="color: #000000;">92</span>: warning: ‘aps’ may be used uninitialized <span style="color: #000000; font-weight: bold;">in</span> this <span style="color: #000000; font-weight: bold;">function</span>
<span style="color: #c20cb9; font-weight: bold;">gcc</span> -I. -I. -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>x86_64-linux -I.  <span style="color: #660033;">-fPIC</span> <span style="color: #660033;">-O2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-pipe</span> <span style="color: #660033;">-Wall</span> -Wp,-D_FORTIFY_SOURCE=<span style="color: #000000;">2</span> <span style="color: #660033;">-fexceptions</span> <span style="color: #660033;">-fstack-protector</span> <span style="color: #660033;">--param</span>=ssp-buffer-size=<span style="color: #000000;">4</span> <span style="color: #660033;">-m64</span> <span style="color: #660033;">-mtune</span>=generic <span style="color: #660033;">-Wall</span> <span style="color: #660033;">-fno-strict-aliasing</span>  <span style="color: #660033;">-fPIC</span>  <span style="color: #660033;">-c</span> hpricot_scan.c
hpricot_scan.rl: In <span style="color: #000000; font-weight: bold;">function</span> ‘our_rb_hash_lookup’:
hpricot_scan.rl:<span style="color: #000000;">169</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> ‘st_lookup’
hpricot_scan.rl: In <span style="color: #000000; font-weight: bold;">function</span> ‘make_hpricot_struct’:
hpricot_scan.rl:<span style="color: #000000;">693</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> ‘RARRAYPTR’
hpricot_scan.rl:<span style="color: #000000;">693</span>: error: subscripted value is neither array nor pointer
<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>hpricot_scan.o<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span>
&nbsp;
&nbsp;
Gem files will remain installed <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>hpricot-0.8.1 <span style="color: #000000; font-weight: bold;">for</span> inspection.
Results logged to <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>hpricot-0.8.1<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>hpricot_scan<span style="color: #000000; font-weight: bold;">/</span>gem_make.out</pre></div></div>

<p>Searching with google I&#8217;ve found <a href="http://frozenplague.net/2009/01/ruby-191-rubygems-rails/#gem_solution">this</a> post that explains equivalence of the RARRAYPTR(v) is RARRAY(v)->ptr . We&#8217;ll need to define RARRAYPTR macro.</p>
<p>We&#8217;ll replace occurences of <strong>#include &lt;ruby.h&gt;</strong> with <strong>#include &#8220;ruby_macros.h&#8221;</strong> and create an include file <strong>ruby_macros.h</strong> with the following content:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#ifndef __RUBY_MACROS__</span>
<span style="color: #339933;">#define __RUBY_MACROS__</span>
&nbsp;
<span style="color: #339933;">#include &lt;ruby.h&gt;</span>
&nbsp;
<span style="color: #339933;">#ifndef RARRAYPTR</span>
<span style="color: #339933;">#  define RARRAYPTR(v) RARRAY(v)-&gt;ptr</span>
<span style="color: #339933;">#endif</span>
<span style="color: #339933;">#endif</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/lib64/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan </span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver hpricot_scan<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># sed -i 's,#include &lt;ruby.h&gt;,#include &quot;ruby_macros.h&quot;,g' *.h *.c *.rl</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver hpricot_scan<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># touch ruby_macros.h</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver hpricot_scan<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi ruby_macros.h</span></pre></div></div>

<p>The next step is to recreate the gem and install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/lib64/ruby/gems/1.8/gems/hpricot-0.8.1</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver hpricot-0.8.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rake package</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>hpricot-0.8.1<span style="color: #7a0874; font-weight: bold;">&#41;</span>
fatal: Not a git repository
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> ext<span style="color: #000000; font-weight: bold;">/</span>fast_xs<span style="color: #000000; font-weight: bold;">/</span>Makefile
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> ext<span style="color: #000000; font-weight: bold;">/</span>hpricot_scan<span style="color: #000000; font-weight: bold;">/</span>Makefile
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> .config
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> pkg
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> hpricot-0.8.1-mswin32
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> hpricot-0.8.1-jruby
Using ragel version: <span style="color: #000000;">6.3</span>, location: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ragel
<span style="color: #7a0874; font-weight: bold;">cd</span> ext<span style="color: #000000; font-weight: bold;">/</span>hpricot_scan ; ragel hpricot_scan.rl <span style="color: #660033;">-G2</span> <span style="color: #660033;">-o</span> hpricot_scan.c <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> ragel hpricot_css.rl <span style="color: #660033;">-G2</span> <span style="color: #660033;">-o</span> hpricot_css.c
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> pkg
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> pkg<span style="color: #000000; font-weight: bold;">/</span>hpricot-0.8.1
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> pkg<span style="color: #000000; font-weight: bold;">/</span>hpricot-0.8.1<span style="color: #000000; font-weight: bold;">/</span>CHANGELOG
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> pkg
<span style="color: #c20cb9; font-weight: bold;">tar</span> zcvf hpricot-0.8.1.tgz hpricot-0.8.1
hpricot-0.8.1<span style="color: #000000; font-weight: bold;">/</span>
hpricot-0.8.1<span style="color: #000000; font-weight: bold;">/</span>Rakefile
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
hpricot-0.8.1<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>fast_xs<span style="color: #000000; font-weight: bold;">/</span>fast_xs.c
<span style="color: #7a0874; font-weight: bold;">cd</span> -
WARNING:  description and summary are identical
  Successfully built RubyGem
  Name: hpricot
  Version: 0.8.1
  File: hpricot-0.8.1.gem
<span style="color: #c20cb9; font-weight: bold;">mv</span> hpricot-0.8.1.gem pkg<span style="color: #000000; font-weight: bold;">/</span>hpricot-0.8.1.gem</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver hpricot-0.8.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install pkg/hpricot-0.8.1.gem</span>
Building native extensions.  This could take a while...
Successfully installed hpricot-0.8.1
<span style="color: #000000;">1</span> gem installed
Installing ri documentation <span style="color: #000000; font-weight: bold;">for</span> hpricot-0.8.1...
Installing RDoc documentation <span style="color: #000000; font-weight: bold;">for</span> hpricot-0.8.1...
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>silver hpricot_scan<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem list -l | grep hpricot</span>
hpricot <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.8.1, <span style="color: #000000;">0.7</span>, 0.6.164, 0.6.161, <span style="color: #000000;">0.6</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Simple script to convert ERB files to Haml</title>
		<link>http://www.cherpec.com/2009/05/simple-script-to-convert-erb-files-to-haml/</link>
		<comments>http://www.cherpec.com/2009/05/simple-script-to-convert-erb-files-to-haml/#comments</comments>
		<pubDate>Fri, 29 May 2009 16:13:46 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[erb]]></category>
		<category><![CDATA[haml]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=318</guid>
		<description><![CDATA[A simple script to convert .erb files from current directory to .haml :

#!/usr/bin/ruby
&#160;
Dir.glob&#40;&#34;*.html.erb&#34;&#41;.each do &#124;erbname&#124;
  hamlname = erbname.gsub&#40;&#34;.html.erb&#34;, &#34;.html.haml&#34;&#41;
  system &#34;/usr/bin/html2haml #{erbname} #{hamlname}&#34;
end

]]></description>
			<content:encoded><![CDATA[<p>A simple script to convert .erb files from current directory to .haml :</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;">#!/usr/bin/ruby</span>
&nbsp;
<span style="color:#CC00FF; font-weight:bold;">Dir</span>.<span style="color:#9900CC;">glob</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;*.html.erb&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>erbname<span style="color:#006600; font-weight:bold;">|</span>
  hamlname = erbname.<span style="color:#CC0066; font-weight:bold;">gsub</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;.html.erb&quot;</span>, <span style="color:#996600;">&quot;.html.haml&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;/usr/bin/html2haml #{erbname} #{hamlname}&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/05/simple-script-to-convert-erb-files-to-haml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>File uploads in import scripts</title>
		<link>http://www.cherpec.com/2009/05/file-uploads-in-import-scripts/</link>
		<comments>http://www.cherpec.com/2009/05/file-uploads-in-import-scripts/#comments</comments>
		<pubDate>Thu, 21 May 2009 16:21:32 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[attachment_fu]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[fake]]></category>
		<category><![CDATA[fixture_file_upload]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[radiant]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=296</guid>
		<description><![CDATA[Simulating file uploads in your scripts or from console can be done really simple using Rail&#8217;s ActionController::TestUploadedFile  from action_pack.
Example code:

require 'action_controller/test_process'
&#160;
class ImportExternalData
 ...
  def import_data
    ...
    page.attachments &#60;&#60; PageAttachment.new&#40;
      :uploaded_data =&#62; fake_file_upload&#40;filename, mime_type&#41;,
      :title =&#62; title,
  [...]]]></description>
			<content:encoded><![CDATA[<p>Simulating file uploads in your scripts or from console can be done really simple using <a href="http://rubyonrails.org/">Rail</a>&#8217;s <a href="http://api.rubyonrails.org/classes/ActionController/TestProcess.html">ActionController::TestUploadedFile</a>  from <strong>action_pack</strong>.</p>
<p>Example code:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'action_controller/test_process'</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">class</span> ImportExternalData
 ...
  <span style="color:#9966CC; font-weight:bold;">def</span> import_data
    ...
    <span style="color:#9900CC;">page</span>.<span style="color:#9900CC;">attachments</span> <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> PageAttachment.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>
      <span style="color:#ff3333; font-weight:bold;">:uploaded_data</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> fake_file_upload<span style="color:#006600; font-weight:bold;">&#40;</span>filename, mime_type<span style="color:#006600; font-weight:bold;">&#41;</span>,
      <span style="color:#ff3333; font-weight:bold;">:title</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> title,
      <span style="color:#ff3333; font-weight:bold;">:description</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> description<span style="color:#006600; font-weight:bold;">&#41;</span>
    ...
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
&nbsp;
protected
  <span style="color:#9966CC; font-weight:bold;">def</span> fake_file_upload<span style="color:#006600; font-weight:bold;">&#40;</span>path, mime_type = <span style="color:#0000FF; font-weight:bold;">nil</span>, binary = <span style="color:#0000FF; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#6666ff; font-weight:bold;">ActionController::TestUploadedFile</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>
      path,
      mime_type,
      binary
    <span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Excerpt from ActionController::TestUploadedFile&#8217;s comments:</p>
<blockquote><p>
Essentially generates a modified Tempfile object similar to the object<br />
you&#8217;d get from the standard library CGI module in a multipart<br />
request. This means you can use an ActionController::TestUploadedFile<br />
object in the params of a test request in order to simulate<br />
a file upload.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/05/file-uploads-in-import-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto install RMagick on CentOS 4</title>
		<link>http://www.cherpec.com/2008/08/howto-install-rmagick-on-centos-4/</link>
		<comments>http://www.cherpec.com/2008/08/howto-install-rmagick-on-centos-4/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 15:42:53 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[centos 4]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[RHEL 4]]></category>
		<category><![CDATA[RMagick]]></category>
		<category><![CDATA[RubyGems]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=19</guid>
		<description><![CDATA[RMagick is an interface between the Ruby programming language and the ImageMagick® and GraphicsMagick image processing libraries.
To install RMagick on CentOS 4 you&#8217;ll need to install RMagick version 1 because version 2 requires newer version of ImageMagick that&#8217;s not available in CentOS 4 repositories.
I do assume that you already have installed RubyGems. If not,  [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><a href="http://rmagick.rubyforge.org/">RMagick</a> is an interface between the Ruby programming language and the ImageMagick® and GraphicsMagick image processing libraries.</p></blockquote>
<p>To install RMagick on CentOS 4 you&#8217;ll need to install RMagick version 1 because version 2 requires newer version of ImageMagick that&#8217;s not available in CentOS 4 repositories.</p>
<p>I do assume that you already have installed RubyGems. If not,  then read my post <a href="http://www.cherpec.com/2008/07/install-rubygems-on-centos-4/">Install RubyGems on CentOS 4</a>. </p>
<p>Let&#8217;s start by installing required libraries:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>lion ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum  install gcc gcc-c++ ImageMagick-devel ghostscript freetype-devel \ </span>
                         libjpeg-devel libpng-devel libpng10-devel libwmf-devel libexif-devel libtiff-devel
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Then install RMagick gem specifying version with &#8216;-v&#8217; switch:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>lion ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># gem install rmagick -v 1.15.14 </span>
Building native extensions.  This could take a while...
Successfully installed rmagick-1.15.14
<span style="color: #000000;">1</span> gem installed</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2008/08/howto-install-rmagick-on-centos-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install RubyGems on CentOS 4</title>
		<link>http://www.cherpec.com/2008/07/install-rubygems-on-centos-4/</link>
		<comments>http://www.cherpec.com/2008/07/install-rubygems-on-centos-4/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 10:17:02 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[centos 4]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[RubyGems]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=5</guid>
		<description><![CDATA[This post will explain how to install RubyGems 1.2 on the server running CentOS 4.
Following instructions from the install section of the  RubyGems User Guide:
http://www.rubygems.org/read/chapter/3

&#91;root@monster tmp&#93;# yum -y install ruby ruby-devel irb
...
&#91;root@monster tmp&#93;# wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
...
&#91;root@monster tmp&#93;# tar xvfzp rubygems-1.2.0.tgz
...
&#91;root@monster tmp&#93;# cd rubygems-1.2.0
&#91;root@monster rubygems-1.2.0&#93;# ruby setup.rb 
Expected Ruby version &#62; 1.8.3, was 1.8.1

Oops, we&#8217;ll need [...]]]></description>
			<content:encoded><![CDATA[<p>This post will explain how to install RubyGems 1.2 on the server running CentOS 4.</p>
<p>Following instructions from the install section of the  RubyGems User Guide:</p>
<p><a href="http://www.rubygems.org/read/chapter/3">http://www.rubygems.org/read/chapter/3</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum -y install ruby ruby-devel irb</span>
...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz</span>
...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar xvfzp rubygems-1.2.0.tgz</span>
...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd rubygems-1.2.0</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster rubygems-1.2.0<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ruby setup.rb </span>
Expected Ruby version <span style="color: #000000; font-weight: bold;">&gt;</span> 1.8.3, was 1.8.1</pre></div></div>

<p>Oops, we&#8217;ll need a newer version of ruby, by default CentOS 4 comes with ruby 1.8.1 . To install a newer version of ruby we&#8217;ll subscribe to <strong>testing</strong> repository from CentOS. To do this we&#8217;ll create a repo file called CentOS-Testing.repo in /etc/yum.repos.d directory:</p>
<p>CentOS-Testing.repo content</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/yum.repos.d/CentOS-Testing.repo</span>
<span style="color: #666666; font-style: italic;"># packages in testing repository</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>testing<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">name</span>=CentOS-<span style="color: #007800;">$releasever</span> - Testing
<span style="color: #007800;">baseurl</span>=http:<span style="color: #000000; font-weight: bold;">//</span>dev.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$releasever</span><span style="color: #000000; font-weight: bold;">/</span>testing<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$basearch</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #007800;">gpgcheck</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">enabled</span>=<span style="color: #000000;">0</span>
<span style="color: #007800;">gpgkey</span>=http:<span style="color: #000000; font-weight: bold;">//</span>dev.centos.org<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>RPM-GPG-KEY-CentOS-testing</pre></div></div>

<p>Note the line with <strong>enabled=0</strong>, we&#8217;ll enable the repository only when needed. Install ruby from the <strong>testing</strong> repository:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum --enablerepo=testing install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc </span>
Loading <span style="color: #ff0000;">&quot;fastestmirror&quot;</span> plugin
Setting up Install Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata <span style="color: #000000; font-weight: bold;">in</span> from <span style="color: #7a0874; font-weight: bold;">local</span> files
Parsing package <span style="color: #c20cb9; font-weight: bold;">install</span> arguments
Resolving Dependencies
...
Dependencies Resolved
&nbsp;
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 ruby-irb                i386       1.8.5-5.el4.centos.1  testing            <span style="color: #000000;">67</span> k
 ruby-rdoc               i386       1.8.5-5.el4.centos.1  testing           <span style="color: #000000;">132</span> k
Updating:
 ruby                    i386       1.8.5-5.el4.centos.1  testing           <span style="color: #000000;">272</span> k
 ruby-devel              i386       1.8.5-5.el4.centos.1  testing           <span style="color: #000000;">503</span> k
 ruby-libs               i386       1.8.5-5.el4.centos.1  testing           <span style="color: #000000;">1.5</span> M
&nbsp;
Transaction Summary
=============================================================================
Install      <span style="color: #000000;">2</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>         
Update       <span style="color: #000000;">3</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>         
Remove       <span style="color: #000000;">0</span> Package<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>         
Total download <span style="color: #c20cb9; font-weight: bold;">size</span>: <span style="color: #000000;">2.5</span> M
Is this ok <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span>: y
Downloading Packages:
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: ruby-rdoc-1.8.5-5. <span style="color: #000000;">100</span><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;">132</span> kB    00:02     
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: ruby-libs-1.8.5-5. <span style="color: #000000;">100</span><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;">1.5</span> MB    00:<span style="color: #000000;">14</span>     
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: ruby-devel-1.8.5-<span style="color: #000000;">5</span> <span style="color: #000000;">100</span><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;">503</span> kB    00:04     
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: ruby-1.8.5-5.el4.c <span style="color: #000000;">100</span><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;">272</span> kB    00:03     
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: ruby-irb-1.8.5-5.e <span style="color: #000000;">100</span><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;">67</span> kB    00:01     
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : ruby-libs                    <span style="color: #666666; font-style: italic;">######################### [1/9] </span>
  Updating  : ruby                         <span style="color: #666666; font-style: italic;">######################### [2/9] </span>
  Installing: ruby-irb                     <span style="color: #666666; font-style: italic;">######################### [3/9] </span>
  Installing: ruby-rdoc                    <span style="color: #666666; font-style: italic;">######################### [4/9] </span>
  Updating  : ruby-devel                   <span style="color: #666666; font-style: italic;">######################### [5/9] </span>
  Cleanup   : ruby-libs                    <span style="color: #666666; font-style: italic;">######################### [6/9]</span>
  Cleanup   : ruby-devel                   <span style="color: #666666; font-style: italic;">######################### [7/9]</span>
  Cleanup   : ruby                         <span style="color: #666666; font-style: italic;">######################### [8/9]</span>
  Removing  : irb                          <span style="color: #666666; font-style: italic;">######################### [9/9]</span>
&nbsp;
Installed: ruby-irb.i386 <span style="color: #000000;">0</span>:1.8.5-5.el4.centos.1 ruby-rdoc.i386 <span style="color: #000000;">0</span>:1.8.5-5.el4.centos.1
Updated: ruby.i386 <span style="color: #000000;">0</span>:1.8.5-5.el4.centos.1 ruby-devel.i386 <span style="color: #000000;">0</span>:1.8.5-5.el4.centos.1 ruby-libs.i386 <span style="color: #000000;">0</span>:1.8.5-5.el4.centos.1
Complete<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p>Now it&#8217;s better, we do have ruby 1.8.5 installed on the system. Let&#8217;s return to RubyGems install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>monster rubygems-1.2.0<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ruby setup.rb</span>
...
<span style="color: #660033;">------------------------------------------------------------------------------</span>
&nbsp;
RubyGems installed the following executables:
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem
&nbsp;
If <span style="color: #000000; font-weight: bold;">`</span>gem<span style="color: #000000; font-weight: bold;">`</span> was installed by a previous RubyGems installation, you may need
to remove it by hand.</pre></div></div>

<p>Voila! We have installed RubyGems 1.2 on the CentOS 4 server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2008/07/install-rubygems-on-centos-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
