<?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: Writing C extensions in RubyGems using newgem generators (plus a free TextMate bundle)</title>
	<atom:link href="http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:26:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: valley</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-192809</link>
		<dc:creator>valley</dc:creator>
		<pubDate>Tue, 22 Dec 2009 10:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-192809</guid>
		<description>If followed all steps for my own project with the latest newgem.
Everything works fine and it also installs the gem, but when i want
to test it i always get the error &#039;no such file to load -- myproject&#039; in
the lib/myproject.rb, where i tried 

require &#039;myproject.so&#039; and require &#039;myproject&#039;

I included the file in the Manifest with
ext/myproject/myproject.o

Did anything change in newgem since this article or why doesn&#039;t it find the library anymore ?
I run os x leopard with ruby 1.8.6

Thanks for your help.
Regards
valley</description>
		<content:encoded><![CDATA[<p>If followed all steps for my own project with the latest newgem.<br />
Everything works fine and it also installs the gem, but when i want<br />
to test it i always get the error &#8216;no such file to load &#8212; myproject&#8217; in<br />
the lib/myproject.rb, where i tried </p>
<p>require &#8216;myproject.so&#8217; and require &#8216;myproject&#8217;</p>
<p>I included the file in the Manifest with<br />
ext/myproject/myproject.o</p>
<p>Did anything change in newgem since this article or why doesn&#8217;t it find the library anymore ?<br />
I run os x leopard with ruby 1.8.6</p>
<p>Thanks for your help.<br />
Regards<br />
valley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram Singla</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-153274</link>
		<dc:creator>Ram Singla</dc:creator>
		<pubDate>Fri, 30 Jan 2009 12:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-153274</guid>
		<description>For Windows the newgem commands through the following error
can&#039;t convert nil into String
  c:/ruby/lib/ruby/gems/1.8/gems/newgem-1.2.3/app_generators/newgem/newgem_generator.rb:169:in `join&#039;

You need to have ENV[&#039;HOME&#039;] setup

one way you can do is

set HOME= %USERPROFILE%

or you can go to 

My Computer -&gt; Properties -&gt; Advanced -&gt; Environmental Variables

and create a new User Variable

with name HOME and with value %USERPROFILE%

or best will be hoe library should fallback to

ENV[&#039;USERPROFILE&#039;] if ENV[&#039;HOME&#039;] is nil [Which is the case for Windows]</description>
		<content:encoded><![CDATA[<p>For Windows the newgem commands through the following error<br />
can&#8217;t convert nil into String<br />
  c:/ruby/lib/ruby/gems/1.8/gems/newgem-1.2.3/app_generators/newgem/newgem_generator.rb:169:in `join&#8217;</p>
<p>You need to have ENV['HOME'] setup</p>
<p>one way you can do is</p>
<p>set HOME= %USERPROFILE%</p>
<p>or you can go to </p>
<p>My Computer -&gt; Properties -&gt; Advanced -&gt; Environmental Variables</p>
<p>and create a new User Variable</p>
<p>with name HOME and with value %USERPROFILE%</p>
<p>or best will be hoe library should fallback to</p>
<p>ENV['USERPROFILE'] if ENV['HOME'] is nil [Which is the case for Windows]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gem build documentation for new gems? &#124; keyongtech</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-151400</link>
		<dc:creator>gem build documentation for new gems? &#124; keyongtech</dc:creator>
		<pubDate>Sun, 18 Jan 2009 17:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-151400</guid>
		<description>[...] so cut me *some* slack, &gt; will you. :P)  You should take a look at what Dr.Nic Williams did:  http://drnicwilliams.com/2008/04/01/...s-in-rubygems/  &gt; &gt; &#124; &gt; &#124; Why not compile natively on Windows? &gt; &gt; Setting up a MinGW/MSYS [...]</description>
		<content:encoded><![CDATA[<p>[...] so cut me *some* slack, &gt; will you. <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )  You should take a look at what Dr.Nic Williams did:  <a href="http://drnicwilliams.com/2008/04/01/...s-in-rubygems/" rel="nofollow">http://drnicwilliams.com/2008/04/01/&#8230;s-in-rubygems/</a>  &gt; &gt; | &gt; | Why not compile natively on Windows? &gt; &gt; Setting up a MinGW/MSYS [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-80054</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Wed, 09 Apr 2008 01:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-80054</guid>
		<description>Thanks Dr. Nic, you continue to make my life easier :D</description>
		<content:encoded><![CDATA[<p>Thanks Dr. Nic, you continue to make my life easier <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Der ehrgeizlose Programmierer &#187; Blog Archive &#187; EURUKO 2008: Native Extensions</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-79579</link>
		<dc:creator>Der ehrgeizlose Programmierer &#187; Blog Archive &#187; EURUKO 2008: Native Extensions</dc:creator>
		<pubDate>Mon, 07 Apr 2008 21:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-79579</guid>
		<description>[...] Nic was kind enough to write a generator to handle native extensions for his newgem tool. newgem is definitely worth trying out, it generates a LOT of boiler plate, [...]</description>
		<content:encoded><![CDATA[<p>[...] Nic was kind enough to write a generator to handle native extensions for his newgem tool. newgem is definitely worth trying out, it generates a LOT of boiler plate, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails Podcast Brasil - Episódio 12</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-79565</link>
		<dc:creator>Rails Podcast Brasil - Episódio 12</dc:creator>
		<pubDate>Mon, 07 Apr 2008 13:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-79565</guid>
		<description>[...] Writing C extensions in RubyGems using newgem generators (plus a free TextMate bundle) [...]</description>
		<content:encoded><![CDATA[<p>[...] Writing C extensions in RubyGems using newgem generators (plus a free TextMate bundle) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: This Week in Ruby (April 7, 2008) &#124; Zen and the Art of Programming</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-79564</link>
		<dc:creator>This Week in Ruby (April 7, 2008) &#124; Zen and the Art of Programming</dc:creator>
		<pubDate>Mon, 07 Apr 2008 10:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-79564</guid>
		<description>[...] Writing C extensions in RubyGems using newgem generators (plus a free TextMate bundle) by Dr Nic [...]</description>
		<content:encoded><![CDATA[<p>[...] Writing C extensions in RubyGems using newgem generators (plus a free TextMate bundle) by Dr Nic [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-78784</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 02 Apr 2008 07:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-78784</guid>
		<description>@Urma [&lt;a href=&#039;http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/#comment-78733&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - yeah that looks to be true; so the LOAD_PATH bit needs to be in the test file still, but can be removed from the root lib file. I&#039;ve removed the line about adding the $LOAD_PATH now; thx.</description>
		<content:encoded><![CDATA[<p>@Urma [<a href='http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/#comment-78733' rel="nofollow">via</a>] &#8211; yeah that looks to be true; so the LOAD_PATH bit needs to be in the test file still, but can be removed from the root lib file. I&#8217;ve removed the line about adding the $LOAD_PATH now; thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-78782</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 02 Apr 2008 07:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-78782</guid>
		<description>@Luis Lavena [&lt;a href=&#039;http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/#comment-78732&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - yeah, I kinda like explicitly stating that you&#039;re loading the extension as it communicates to the read where they should find the source, I think. But that&#039;s just imo.

I&#039;ll email you about how to pre-build mswin32 etc gems, and if extra rake tasks would be helpful.</description>
		<content:encoded><![CDATA[<p>@Luis Lavena [<a href='http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/#comment-78732' rel="nofollow">via</a>] &#8211; yeah, I kinda like explicitly stating that you&#8217;re loading the extension as it communicates to the read where they should find the source, I think. But that&#8217;s just imo.</p>
<p>I&#8217;ll email you about how to pre-build mswin32 etc gems, and if extra rake tasks would be helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urma</title>
		<link>http://drnicwilliams.com/2008/04/01/writing-c-extensions-in-rubygems/comment-page-1/#comment-78733</link>
		<dc:creator>Urma</dc:creator>
		<pubDate>Tue, 01 Apr 2008 14:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/?p=269#comment-78733</guid>
		<description>That LOAD_PATH thing is kinda odd. Are you sure it works when installed as an actual gem? In my experience the extension target always gets moved into lib/ after Rubygems builds it.</description>
		<content:encoded><![CDATA[<p>That LOAD_PATH thing is kinda odd. Are you sure it works when installed as an actual gem? In my experience the extension target always gets moved into lib/ after Rubygems builds it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

