# Problem with custom\_require

**URL:** <https://www.ruby-forum.com/t/problem-with-custom-require/112184>\
**Category:** Ruby\
**Created:** [August 16, 2007, 4:47am UTC](https://www.ruby-forum.com/t/problem-with-custom-require/112184 "2007-08-16T04:47:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [August 16, 2007, 4:47am UTC](https://www.ruby-forum.com/t/problem-with-custom-require/112184/1 "2007-08-16T04:47:23Z")

</div>

So, for anyone who remembers, I had a post a while ago about not being  
to get into console with Rails. I kept getting this error saying error  
with custom require. I tried uninstalling rails and reinstalling, using  
the latest and earlier versions. I uninstalled ruby and reinstalled with  
1.8.6. Tried 1.8.5. still nothing. Well, I am trying out this video game  
development framework called shattered ruby, and I can’t run ruby  
script/runner without getting a similar error.

C:\shattered\_apps\dirty\_ruby\>ruby script/runner  
c:/ruby/lib/ruby/gems/1.8/gems/shattered\_ogrerb-0.5.0.2/vendor/ogrerb/lib/ogre.d  
ll: 14001: This application has failed to start because the application  
configur  
ation is incorrect. Reinstalling the application may fix this problem.

- c:/ru  
by/lib/ruby/gems/1.8/gems/shattered\_ogrerb-0.5.0.2/vendor/ogrerb/lib/ogre.dll  
(L  
oadError)  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.0.2/lib/../vend or/ogrerb/ogre.rb:9 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`ge  
m\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.0.2/lib/shatter ed_ogrerb.rb:13 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in`ge  
m\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.0.2/lib/shatter.r b:4 ... 6 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`ge  
m\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re quire' from ./script/runner.rb:2:in`start\_game’  
from script/runner:8

The rails error, though shorter, still mentions the custom\_require.rb  
file

Loading development environment.  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_re quire': no such file to load -- ./script/../config/../config/environment (LoadEr ror) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`re  
quire’  
from c:/ruby/lib/ruby/1.8/irb/init.rb:252:in `load_modules' from c:/ruby/lib/ruby/1.8/irb/init.rb:250:in`each’  
from c:/ruby/lib/ruby/1.8/irb/init.rb:250:in `load_modules' from c:/ruby/lib/ruby/1.8/irb/init.rb:21:in`setup’  
from c:/ruby/lib/ruby/1.8/irb.rb:54:in `start’  
from c:/ruby/bin/irb.bat:15

PLEASE!!! I need help so bad, i’m getting frustrated. Thanks so much.

~Jeremy
