<?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: Ruby bugs on Leopard</title>
	<atom:link href="http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/</link>
	<description>iPhone, iPad and Mac OS X Programming (with a dash of Ruby)</description>
	<lastBuildDate>Sun, 08 Aug 2010 04:05:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Alex</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-24362</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 29 Nov 2007 16:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-24362</guid>
		<description>These simple steps fixed my flawed RubyGems:

sudo su -c
export GEM_HOME=/Library/Ruby/Gems/1.8
gem update --system

(see here: http://blog.0xab.cd/rubygems-misbehaviour-on-leopard)</description>
		<content:encoded><![CDATA[<p>These simple steps fixed my flawed RubyGems:</p>
<p>sudo su -c<br />
export GEM_HOME=/Library/Ruby/Gems/1.8<br />
gem update &#8211;system</p>
<p>(see here: <a href="http://blog.0xab.cd/rubygems-misbehaviour-on-leopard)" rel="nofollow">http://blog.0xab.cd/rubygems-misbehaviour-on-leopard)</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Davenport</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23947</link>
		<dc:creator>Bill Davenport</dc:creator>
		<pubDate>Sat, 24 Nov 2007 19:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23947</guid>
		<description>I don&#039;t think this is just an Apple issue.  I updated my Gutsy Gibbon gem package and I had the same issue.

I did not look into it any deeper. I just reinstalled my gem packages and I was back up and running...

BTW: I had to reinstall the Rails gem too.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think this is just an Apple issue.  I updated my Gutsy Gibbon gem package and I had the same issue.</p>
<p>I did not look into it any deeper. I just reinstalled my gem packages and I was back up and running&#8230;</p>
<p>BTW: I had to reinstall the Rails gem too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gems in Leopard : RubyHead</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23939</link>
		<dc:creator>Gems in Leopard : RubyHead</dc:creator>
		<pubDate>Sat, 24 Nov 2007 14:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23939</guid>
		<description>[...] http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/" rel="nofollow">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HG</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23678</link>
		<dc:creator>HG</dc:creator>
		<pubDate>Wed, 21 Nov 2007 15:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23678</guid>
		<description>@Thomas and Luis:

There&#039;s a symbolic link &#039;user-gems&#039; which points to /Library/Ruby/Gems.  I would think this link is overriding the environment variable settings.  (This link is located at /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/lib/ruby.)

As for setting up environment variables in the root account.  You could open a root shell with...

sudo su -

This will open a root shell which inherits the environment variables in the root account&#039;s .profile or .tcshrc file which you would maintain in the root account&#039;s home, /var/root.</description>
		<content:encoded><![CDATA[<p>@Thomas and Luis:</p>
<p>There&#8217;s a symbolic link &#8216;user-gems&#8217; which points to /Library/Ruby/Gems.  I would think this link is overriding the environment variable settings.  (This link is located at /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/lib/ruby.)</p>
<p>As for setting up environment variables in the root account.  You could open a root shell with&#8230;</p>
<p>sudo su -</p>
<p>This will open a root shell which inherits the environment variables in the root account&#8217;s .profile or .tcshrc file which you would maintain in the root account&#8217;s home, /var/root.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HG</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23676</link>
		<dc:creator>HG</dc:creator>
		<pubDate>Wed, 21 Nov 2007 15:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23676</guid>
		<description>How long do you think Ruby will remain on 1.8?  As soon as Ruby is updated to a new major version, you&#039;ll have to change your environment variable settings.

I would expect Apple will implement a system of symbolic links pointing to the latest version of Ruby.  That&#039;s how they manage Java.  Then all you&#039;d have to do is set GEM_PATH to /System/Library/Frameworks/Ruby.framework/Versions/Current and never have to change your environment variable again.

Apple has implemented this partially in Leopard.  Maybe because the system is incomplete, we&#039;re having these problems.</description>
		<content:encoded><![CDATA[<p>How long do you think Ruby will remain on 1.8?  As soon as Ruby is updated to a new major version, you&#8217;ll have to change your environment variable settings.</p>
<p>I would expect Apple will implement a system of symbolic links pointing to the latest version of Ruby.  That&#8217;s how they manage Java.  Then all you&#8217;d have to do is set GEM_PATH to /System/Library/Frameworks/Ruby.framework/Versions/Current and never have to change your environment variable again.</p>
<p>Apple has implemented this partially in Leopard.  Maybe because the system is incomplete, we&#8217;re having these problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Carson</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23530</link>
		<dc:creator>Brad Carson</dc:creator>
		<pubDate>Tue, 20 Nov 2007 00:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23530</guid>
		<description>Following your instructions fixed a &quot;command not found&quot; problem I was having after installing and trying to run piston.  

One of the first things I did after getting Leopard was a gem system update and now I&#039;ve got copies of gems EVERYWHERE lol.  I&#039;m afraid to delete anything now!

Anyway, thank you so much!</description>
		<content:encoded><![CDATA[<p>Following your instructions fixed a &#8220;command not found&#8221; problem I was having after installing and trying to run piston.  </p>
<p>One of the first things I did after getting Leopard was a gem system update and now I&#8217;ve got copies of gems EVERYWHERE lol.  I&#8217;m afraid to delete anything now!</p>
<p>Anyway, thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luis</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23275</link>
		<dc:creator>luis</dc:creator>
		<pubDate>Sun, 18 Nov 2007 01:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23275</guid>
		<description>matt: If you get that error, I think you need to install Xcode.  It&#039;s on your Leopard Install Disc.   I have to give credit to &lt;a href=&quot;http://www.kolonay.com/2007/10/ruby-on-rails-and-leopard-n00bs-view.html&quot; rel=&quot;nofollow&quot;&gt;Jeremy who blogged about this exact error&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>matt: If you get that error, I think you need to install Xcode.  It&#8217;s on your Leopard Install Disc.   I have to give credit to <a href="http://www.kolonay.com/2007/10/ruby-on-rails-and-leopard-n00bs-view.html" rel="nofollow">Jeremy who blogged about this exact error</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23273</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Sun, 18 Nov 2007 01:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23273</guid>
		<description>I&#039;m still having problems. Example:

hume:~ mattleopard$ gem update fastthread
Updating installed gems...
Attempting remote update of fastthread
Select which gem to install for your platform (universal-darwin9.0)
 1. fastthread 1.0.1 (ruby)
 2. fastthread 1.0 (ruby)
 3. fastthread 1.0 (mswin32)
 4. fastthread 0.6.4.1 (ruby)
 5. fastthread 0.6.4.1 (mswin32)
 6. Skip this gem
 7. Cancel installation
&gt; 1
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb update fastthread
can&#039;t find header files for ruby.


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/fastthread-1.0.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out</description>
		<content:encoded><![CDATA[<p>I&#8217;m still having problems. Example:</p>
<p>hume:~ mattleopard$ gem update fastthread<br />
Updating installed gems&#8230;<br />
Attempting remote update of fastthread<br />
Select which gem to install for your platform (universal-darwin9.0)<br />
 1. fastthread 1.0.1 (ruby)<br />
 2. fastthread 1.0 (ruby)<br />
 3. fastthread 1.0 (mswin32)<br />
 4. fastthread 0.6.4.1 (ruby)<br />
 5. fastthread 0.6.4.1 (mswin32)<br />
 6. Skip this gem<br />
 7. Cancel installation<br />
&gt; 1<br />
Building native extensions.  This could take a while&#8230;<br />
ERROR:  While executing gem &#8230; (Gem::Installer::ExtensionBuildError)<br />
    ERROR: Failed to build gem native extension.</p>
<p>ruby extconf.rb update fastthread<br />
can&#8217;t find header files for ruby.</p>
<p>Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/fastthread-1.0.1 for inspection.<br />
Results logged to /Library/Ruby/Gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luis</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23114</link>
		<dc:creator>luis</dc:creator>
		<pubDate>Fri, 16 Nov 2007 16:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23114</guid>
		<description>Good catch.  I noticed that I didn&#039;t have to use sudo after updating rubygems and setting GEM_HOME and GEM_PATH.  Thanks for pointing out that sudo doesn&#039;t preserve those variables.
Now I enjoy leaving out sudo and just doing &quot;gem install ...&quot;</description>
		<content:encoded><![CDATA[<p>Good catch.  I noticed that I didn&#8217;t have to use sudo after updating rubygems and setting GEM_HOME and GEM_PATH.  Thanks for pointing out that sudo doesn&#8217;t preserve those variables.<br />
Now I enjoy leaving out sudo and just doing &#8220;gem install &#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Krajacic</title>
		<link>http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/comment-page-1/#comment-23113</link>
		<dc:creator>Thomas Krajacic</dc:creator>
		<pubDate>Fri, 16 Nov 2007 16:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/#comment-23113</guid>
		<description>actually I know the problem now exactly.
The problem is, that the sudo command doesn&#039;t share the environment with the user space. adding the GEM_HOME and PATH variables to bash or tcsh in my case doesn&#039;t solve the problem.
I don&#039;t know how to add environment variables to the root users environment. (i also added them to .MacosX/environment.plist, but that just makes them available to other applications outside the shell)

I actually can install the gems fine just without using sudo, as the regular user has access to the gems directory, and everything works fine.

hope someone can clarify this a bit. I also don&#039;t know if its a problem installing the gems without sudo now, but it seems to work just fine</description>
		<content:encoded><![CDATA[<p>actually I know the problem now exactly.<br />
The problem is, that the sudo command doesn&#8217;t share the environment with the user space. adding the GEM_HOME and PATH variables to bash or tcsh in my case doesn&#8217;t solve the problem.<br />
I don&#8217;t know how to add environment variables to the root users environment. (i also added them to .MacosX/environment.plist, but that just makes them available to other applications outside the shell)</p>
<p>I actually can install the gems fine just without using sudo, as the regular user has access to the gems directory, and everything works fine.</p>
<p>hope someone can clarify this a bit. I also don&#8217;t know if its a problem installing the gems without sudo now, but it seems to work just fine</p>
]]></content:encoded>
	</item>
</channel>
</rss>
