# No such file to load -- restClient (MissingSourceFile) HELP

**URL:** <https://www.ruby-forum.com/t/no-such-file-to-load-restclient-missingsourcefile-help/176680>\
**Category:** Rails\
**Created:** [October 4, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-restclient-missingsourcefile-help/176680 "2009-10-04T21:40:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [October 4, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-restclient-missingsourcefile-help/176680/1 "2009-10-04T21:40:32Z")

</div>

i don’t get what is going on here. if i run the restclient command  
that starts an irb with restclient it works fine but when i try to load  
it from environment.rb with require ‘rest\_client’ this is what i get…  
it’s driving me batty.

/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require': no such file to load -- restClient (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/dependencies.rb:158:in  
`require' from /home/morgan/public_html/tutoring.minulle.com/app/releases/20091004193614/app/controllers/upload_controller.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in`require’  
from  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/dependencies.rb:265:in  
`require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:224:in`depend\_on’  
from  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/dependencies.rb:136:in  
`require_dependency' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:414:in`load\_application\_classes’  
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413:in  
`each' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:413:in`load\_application\_classes’  
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411:in  
`each' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:411:in`load\_application\_classes’  
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:197:in  
`process' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in`send’  
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in  
`run' from /home/morgan/public_html/tutoring.minulle.com/app/current/config/environment.rb:14 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/rack/adapter/rails.rb:43:in`load\_application’  
from  
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/rack/adapter/rails.rb:23:in  
`initialize' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/rack/adapter/loader.rb:36:in`new’  
from  
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/rack/adapter/loader.rb:36:in  
`for' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/controllers/controller.rb:163:in`load\_adapter’  
from  
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/controllers/controller.rb:67:in  
`start' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/runner.rb:174:in`send’  
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/runner.rb:174:in  
`run_command' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/runner.rb:140:in`run!’  
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.4/bin/thin:6  
from /usr/bin/thin:19:in `load’  
from /usr/bin/thin:19

---

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [October 4, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-restclient-missingsourcefile-help/176680/2 "2009-10-04T22:39:54Z")

</div>

On Oct 4, 8:40 pm, Morgan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> i don’t get what is going on here. if i run the restclient command  
> that starts an irb with restclient it works fine but when i try to load  
> it from environment.rb with require ‘rest\_client’ this is what i get…  
> it’s driving me batty.

Don’t know restClient, but random guess: your upload controller is  
requiring a file that requires a gem to be loading and you are  
requiring that gem at the bottom of environment.rb (or at least after  
the Initializer block)

Fred

---

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [October 6, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-restclient-missingsourcefile-help/176680/3 "2009-10-06T19:03:57Z")

</div>

Frederick C. wrote:

> On Oct 4, 8:40ï¿½pm, Morgan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > i don’t get what is going on here. ï¿½ if i run the restclient command  
> > that starts an irb with restclient it works fine but when i try to load  
> > it from environment.rb with require ‘rest\_client’ ï¿½this is what i get…  
> > it’s driving me batty.
> 
> Don’t know restClient, but random guess: your upload controller is  
> requiring a file that requires a gem to be loading and you are  
> requiring that gem at the bottom of environment.rb (or at least after  
> the Initializer block)
> 
> Fred

i figured it out. i was orignally loading it in another abandoned  
controller which i finally got around to deleting and everything is  
kosher now. apparently i misnamed the gem in the require statment in  
the other controller as well.

so it was just (clean up after yourself dumbass) error.

thanks again.
