<?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: warning: already initialized constant OPTIONS</title>
	<atom:link href="http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/</link>
	<description>Dan Sketcher on Rails, computers, and other junk</description>
	<lastBuildDate>Wed, 30 Jul 2008 20:15:31 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Natalie</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-4341</link>
		<dc:creator>Natalie</dc:creator>
		<pubDate>Wed, 30 Jul 2008 20:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-4341</guid>
		<description>Apparently it also happens if you accidentally have a circular include. The weird thing is I thought there was a different error message for circular requires, but I wasn&#039;t getting it, just the &quot;warning: already initialized constant&quot; thing. But when I tracked down and removed the circular require it fixed it.</description>
		<content:encoded><![CDATA[<p>Apparently it also happens if you accidentally have a circular include. The weird thing is I thought there was a different error message for circular requires, but I wasn&#8217;t getting it, just the &#8220;warning: already initialized constant&#8221; thing. But when I tracked down and removed the circular require it fixed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muni</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-3991</link>
		<dc:creator>muni</dc:creator>
		<pubDate>Mon, 04 Feb 2008 14:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-3991</guid>
		<description>Hai,
 
i am new to Rails, i am struggling with the same above problem .so can any body give me detailed explanation how to solve this problem. i didnt understand what u r saying, so any body help me please. almost it sucks 2 days..

Thanks,
Muni.</description>
		<content:encoded><![CDATA[<p>Hai,</p>
<p>i am new to Rails, i am struggling with the same above problem .so can any body give me detailed explanation how to solve this problem. i didnt understand what u r saying, so any body help me please. almost it sucks 2 days..</p>
<p>Thanks,<br />
Muni.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-3547</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Wed, 05 Dec 2007 16:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-3547</guid>
		<description>That&#039;s not the only error that can crop up from requiring a non-existant file.

It seems like a bug to me, What should really happen is a MissingSourceFile exception, which I actually see if I downgrade to rails 1.1.6

here are some other strange exceptions/behavior I&#039;ve seen, all caused by requiring a missing file or gem:
http://dev.rubyonrails.org/ticket/10376</description>
		<content:encoded><![CDATA[<p>That&#8217;s not the only error that can crop up from requiring a non-existant file.</p>
<p>It seems like a bug to me, What should really happen is a MissingSourceFile exception, which I actually see if I downgrade to rails 1.1.6</p>
<p>here are some other strange exceptions/behavior I&#8217;ve seen, all caused by requiring a missing file or gem:<br />
<a href="http://dev.rubyonrails.org/ticket/10376" rel="nofollow" onClick="javascript:urchinTracker ('/outbound/comment/dev.rubyonrails.org');">http://dev.rubyonrails.org/ticket/10376</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-3534</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 01 Dec 2007 20:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-3534</guid>
		<description>hey thanks for the post and the comments. this error message sucks, indeed.</description>
		<content:encoded><![CDATA[<p>hey thanks for the post and the comments. this error message sucks, indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JoNtE</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-3492</link>
		<dc:creator>JoNtE</dc:creator>
		<pubDate>Wed, 14 Nov 2007 13:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-3492</guid>
		<description>Had the same problem.
A tip is to start webrick instead.

At least it will tell you which gem that it fails to load ;)

&lt;code&gt;
ruby script/server webrick
&lt;/code&gt;
Like:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#039;: no such file to load -- GD (MissingSourceFile)</description>
		<content:encoded><![CDATA[<p>Had the same problem.<br />
A tip is to start webrick instead.</p>
<p>At least it will tell you which gem that it fails to load ;)</p>
<p><code><br />
ruby script/server webrick<br />
</code><br />
Like:<br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#8217;: no such file to load &#8212; GD (MissingSourceFile)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Schofield</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-3237</link>
		<dc:creator>Sean Schofield</dc:creator>
		<pubDate>Thu, 27 Sep 2007 12:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-3237</guid>
		<description>What a horribly vague error message.  I fixed the problem as well.  I had done a little &quot;tidying&quot; of my code and accidentally removed my own library that I was &quot;requiring.&quot;  It would be nice if we could be told the name of the missing resource (or at least that there was a missing resource.)</description>
		<content:encoded><![CDATA[<p>What a horribly vague error message.  I fixed the problem as well.  I had done a little &#8220;tidying&#8221; of my code and accidentally removed my own library that I was &#8220;requiring.&#8221;  It would be nice if we could be told the name of the missing resource (or at least that there was a missing resource.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: antono</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-2957</link>
		<dc:creator>antono</dc:creator>
		<pubDate>Wed, 15 Aug 2007 11:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-2957</guid>
		<description>Thanks! It helps me :)
I&#039;ve missed rmagic on my Debian box.

 aptitude install librmagick-ruby</description>
		<content:encoded><![CDATA[<p>Thanks! It helps me :)<br />
I&#8217;ve missed rmagic on my Debian box.</p>
<p> aptitude install librmagick-ruby</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leevi Graham</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-2808</link>
		<dc:creator>Leevi Graham</dc:creator>
		<pubDate>Sat, 04 Aug 2007 02:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-2808</guid>
		<description>OK sorted this one out.

The solution for me was installing the ruby-debug gem - sudo gem install ruby-debug

The reason: /config/environments/development.rb requires it.

begin
require ‘ruby-debug’
rescue
config.breakpoint_server = true
end</description>
		<content:encoded><![CDATA[<p>OK sorted this one out.</p>
<p>The solution for me was installing the ruby-debug gem &#8211; sudo gem install ruby-debug</p>
<p>The reason: /config/environments/development.rb requires it.</p>
<p>begin<br />
require ‘ruby-debug’<br />
rescue<br />
config.breakpoint_server = true<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-2479</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 18 Jul 2007 04:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-2479</guid>
		<description>Apparently, this happens if you require any non-existing file from within config/environment.rb

After switching my rails app to another server, I was getting that cryptic error message when I ran script/server. Turns out I had a &quot;require &#039;json&#039;&quot; in environment.rb, but didn&#039;t have the json gem installed.

It&#039;s not necessarily related to missing gems, it can be easily reproduced if you &quot;require &#039;nonexistingfile&#039;&quot;.</description>
		<content:encoded><![CDATA[<p>Apparently, this happens if you require any non-existing file from within config/environment.rb</p>
<p>After switching my rails app to another server, I was getting that cryptic error message when I ran script/server. Turns out I had a &#8220;require &#8216;json&#8217;&#8221; in environment.rb, but didn&#8217;t have the json gem installed.</p>
<p>It&#8217;s not necessarily related to missing gems, it can be easily reproduced if you &#8220;require &#8216;nonexistingfile&#8217;&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dansketcher</title>
		<link>http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/comment-page-1/#comment-1744</link>
		<dc:creator>dansketcher</dc:creator>
		<pubDate>Tue, 05 Jun 2007 07:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options/#comment-1744</guid>
		<description>There were heaps: log4r, calibre, sentry... I&#039;m not sure which one it was exactly, but it was definitely a missing dependency issue</description>
		<content:encoded><![CDATA[<p>There were heaps: log4r, calibre, sentry&#8230; I&#8217;m not sure which one it was exactly, but it was definitely a missing dependency issue</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.357 seconds -->
