<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Hpricot 0.8.1 on ruby 1.8.5</title>
	<atom:link href="http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/</link>
	<description>linux + ruby on rails = love</description>
	<lastBuildDate>Fri, 09 Sep 2011 03:54:28 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ryan Horrisberger</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-283</link>
		<dc:creator>Ryan Horrisberger</dc:creator>
		<pubDate>Thu, 29 Apr 2010 17:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-283</guid>
		<description>gem install hpricot -v 0.7

no problem on centos 5</description>
		<content:encoded><![CDATA[<p>gem install hpricot -v 0.7</p>
<p>no problem on centos 5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitalie Cherpec</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-271</link>
		<dc:creator>Vitalie Cherpec</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-271</guid>
		<description>I&#039;ve switched to Nokogiri, it&#039;s more robust and easier to install:

http://nokogiri.org/
http://github.com/tenderlove/nokogiri
http://tenderlovemaking.com/category/computadora/nokogiri/</description>
		<content:encoded><![CDATA[<p>I&#8217;ve switched to Nokogiri, it&#8217;s more robust and easier to install:</p>
<p><a href="http://nokogiri.org/" rel="nofollow">http://nokogiri.org/</a><br />
<a href="http://github.com/tenderlove/nokogiri" rel="nofollow">http://github.com/tenderlove/nokogiri</a><br />
<a href="http://tenderlovemaking.com/category/computadora/nokogiri/" rel="nofollow">http://tenderlovemaking.com/category/computadora/nokogiri/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias Overkamp</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-270</link>
		<dc:creator>Tobias Overkamp</dc:creator>
		<pubDate>Tue, 19 Jan 2010 13:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-270</guid>
		<description>Correction to the comment above:

1) gem install hpricot
2) cd $GEM_SOURCE (see from error message above)
3) cd ext/hpricot_scan
4) sed -i &#039;s,#include ,#include &quot;ruby_macros.h&quot;,g&#039; *.h *.c *.rl
5) vi ruby_macros.h
#ifndef __RUBY_MACROS__
#define __RUBY_MACROS__

#include &lt;ruby.h&gt;

#ifndef RARRAYPTR
# define RARRAYPTR(v) RARRAY(v)-&gt;ptr
#endif

#ifndef RARRAY_PTR
# define RARRAY_PTR(v) RARRAY(v)-&gt;ptr
#endif

#ifndef RSTRUCT_PTR
# define RSTRUCT_PTR(v) RSTRUCT(v)-&gt;ptr
#endif

#endif
 (include &quot;lower-than&quot;ruby.h&quot;greater-than&quot;... dunno if the braces/brackets whatever appear in the comment)
6) cd $GEM_SOURCE (see above)
7) rake install
8) rake install (still 2 times necessary)

that&#039;s it.</description>
		<content:encoded><![CDATA[<p>Correction to the comment above:</p>
<p>1) gem install hpricot<br />
2) cd $GEM_SOURCE (see from error message above)<br />
3) cd ext/hpricot_scan<br />
4) sed -i &#8217;s,#include ,#include &#8220;ruby_macros.h&#8221;,g&#8217; *.h *.c *.rl<br />
5) vi ruby_macros.h<br />
#ifndef __RUBY_MACROS__<br />
#define __RUBY_MACROS__</p>
<p>#include &lt;ruby.h&gt;</p>
<p>#ifndef RARRAYPTR<br />
# define RARRAYPTR(v) RARRAY(v)-&gt;ptr<br />
#endif</p>
<p>#ifndef RARRAY_PTR<br />
# define RARRAY_PTR(v) RARRAY(v)-&gt;ptr<br />
#endif</p>
<p>#ifndef RSTRUCT_PTR<br />
# define RSTRUCT_PTR(v) RSTRUCT(v)-&gt;ptr<br />
#endif</p>
<p>#endif<br />
 (include &#8220;lower-than&#8221;ruby.h&#8221;greater-than&#8221;&#8230; dunno if the braces/brackets whatever appear in the comment)<br />
6) cd $GEM_SOURCE (see above)<br />
7) rake install<br />
 <img src='http://www.cherpec.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> rake install (still 2 times necessary)</p>
<p>that&#8217;s it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias Overkamp</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-257</link>
		<dc:creator>Tobias Overkamp</dc:creator>
		<pubDate>Mon, 23 Nov 2009 15:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-257</guid>
		<description>Hi,
for me it worked after manual installation of ragel (source code) and changing the ruby_macros.h to

#ifndef __RUBY_MACROS__
#define __RUBY_MACROS__

#include 

#ifndef RARRAYPTR
#  define RARRAYPTR(v) RARRAY(v)-&gt;ptr
#endif

#ifndef RARRAY_PTR
# define RARRAY_PTR(v) RARRAY(v)-&gt;ptr
#endif

#ifndef RSTRUCT_PTR
# define RSTRUCT_PTR(v) RSTRUCT(v)-&gt;ptr
#endif

#endif


After this I did the sed from above and performed a
ruby setup.rg in the gem-root. Did this again and then 2 times a &quot;rake install&quot; in the gem-root.

Strangely it did not work the 1st time therefore I repeated both &quot;installs&quot;

Thanks for your efforts!

CentOS release 4.3 (Final), ruby 1.8.7 (Source)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
for me it worked after manual installation of ragel (source code) and changing the ruby_macros.h to</p>
<p>#ifndef __RUBY_MACROS__<br />
#define __RUBY_MACROS__</p>
<p>#include </p>
<p>#ifndef RARRAYPTR<br />
#  define RARRAYPTR(v) RARRAY(v)-&gt;ptr<br />
#endif</p>
<p>#ifndef RARRAY_PTR<br />
# define RARRAY_PTR(v) RARRAY(v)-&gt;ptr<br />
#endif</p>
<p>#ifndef RSTRUCT_PTR<br />
# define RSTRUCT_PTR(v) RSTRUCT(v)-&gt;ptr<br />
#endif</p>
<p>#endif</p>
<p>After this I did the sed from above and performed a<br />
ruby setup.rg in the gem-root. Did this again and then 2 times a &#8220;rake install&#8221; in the gem-root.</p>
<p>Strangely it did not work the 1st time therefore I repeated both &#8220;installs&#8221;</p>
<p>Thanks for your efforts!</p>
<p>CentOS release 4.3 (Final), ruby 1.8.7 (Source)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leyendo APIs desde Rails&#160;&#124;&#160;alejandro corpeño</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-252</link>
		<dc:creator>Leyendo APIs desde Rails&#160;&#124;&#160;alejandro corpeño</dc:creator>
		<pubDate>Thu, 12 Nov 2009 23:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-252</guid>
		<description>[...] la solución en un blog, el problema era que la versión de Ruby bajo la que operan los grid containers es la 1.8.5 y para [...]</description>
		<content:encoded><![CDATA[<p>[...] la solución en un blog, el problema era que la versión de Ruby bajo la que operan los grid containers es la 1.8.5 y para [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-243</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Thu, 29 Oct 2009 09:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-243</guid>
		<description>http://github.com/defunkt/hpricot

that worked on 1.8.5</description>
		<content:encoded><![CDATA[<p><a href="http://github.com/defunkt/hpricot" rel="nofollow">http://github.com/defunkt/hpricot</a></p>
<p>that worked on 1.8.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Adam Moore</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-230</link>
		<dc:creator>J. Adam Moore</dc:creator>
		<pubDate>Tue, 13 Oct 2009 07:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-230</guid>
		<description>sudo apt-get install ruby1.8-dev

worked for me.</description>
		<content:encoded><![CDATA[<p>sudo apt-get install ruby1.8-dev</p>
<p>worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Florin</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-226</link>
		<dc:creator>Adam Florin</dc:creator>
		<pubDate>Wed, 02 Sep 2009 21:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-226</guid>
		<description>Actually, scratch that; it _installed_ successfully, but once I tried to execute Hpricot code in irb, it bailed with an &quot;undefined symbol: RSTRING_PTR&quot; error.

So, I started my Ruby install from scratch, building 1.8.6 from source rather than sticking with the 1.8.4 apt-get offered... A few headaches later, everything works!</description>
		<content:encoded><![CDATA[<p>Actually, scratch that; it _installed_ successfully, but once I tried to execute Hpricot code in irb, it bailed with an &#8220;undefined symbol: RSTRING_PTR&#8221; error.</p>
<p>So, I started my Ruby install from scratch, building 1.8.6 from source rather than sticking with the 1.8.4 apt-get offered&#8230; A few headaches later, everything works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Florin</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-225</link>
		<dc:creator>Adam Florin</dc:creator>
		<pubDate>Wed, 02 Sep 2009 18:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-225</guid>
		<description>Thanks for this! I was able to fix a very similar problem. In my case I was getting:

hpricot_scan.rl:181: warning: implicit declaration of function ‘RSTRUCT_PTR’

...followed by a flood of &quot;subscripted value is neither array nor pointer&quot; errors. So in my ruby_macros.h file, I put:

#ifndef RSTRUCT_PTR
#  define RSTRUCT_PTR(v) RSTRUCT(v)-&gt;ptr
#endif

And it worked!

(I also had to install Ragel 6.5 from source as apt-get in Ubuntu Dapper would only install 5.1. This is w/ Ruby 1.8.4, RubyGems 1.3.5, and Hpricot 0.8.1.)</description>
		<content:encoded><![CDATA[<p>Thanks for this! I was able to fix a very similar problem. In my case I was getting:</p>
<p>hpricot_scan.rl:181: warning: implicit declaration of function ‘RSTRUCT_PTR’</p>
<p>&#8230;followed by a flood of &#8220;subscripted value is neither array nor pointer&#8221; errors. So in my ruby_macros.h file, I put:</p>
<p>#ifndef RSTRUCT_PTR<br />
#  define RSTRUCT_PTR(v) RSTRUCT(v)-&gt;ptr<br />
#endif</p>
<p>And it worked!</p>
<p>(I also had to install Ragel 6.5 from source as apt-get in Ubuntu Dapper would only install 5.1. This is w/ Ruby 1.8.4, RubyGems 1.3.5, and Hpricot 0.8.1.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thierry Thelliez</title>
		<link>http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/comment-page-1/#comment-221</link>
		<dc:creator>Thierry Thelliez</dc:creator>
		<pubDate>Tue, 18 Aug 2009 01:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.cherpec.com/?p=332#comment-221</guid>
		<description>Same comment (and same configuration) as Jed about  RARRAY_PTR instead of RARRAYPTR.

Just change ruby_macros.h to:
 
#ifndef __RUBY_MACROS__
#define __RUBY_MACROS__
 
#include 
 
#ifndef RARRAY_PTR
#  define RARRAY_PTR(v) RARRAY(v)-&gt;ptr
#endif
#endif</description>
		<content:encoded><![CDATA[<p>Same comment (and same configuration) as Jed about  RARRAY_PTR instead of RARRAYPTR.</p>
<p>Just change ruby_macros.h to:</p>
<p>#ifndef __RUBY_MACROS__<br />
#define __RUBY_MACROS__</p>
<p>#include </p>
<p>#ifndef RARRAY_PTR<br />
#  define RARRAY_PTR(v) RARRAY(v)-&gt;ptr<br />
#endif<br />
#endif</p>
]]></content:encoded>
	</item>
</channel>
</rss>

