# Rake 'no such file to load' but gem exists and loads

**URL:** <https://www.ruby-forum.com/t/rake-no-such-file-to-load-but-gem-exists-and-loads/189146>\
**Category:** Rails\
**Created:** [May 25, 2010, 3:00pm UTC](https://www.ruby-forum.com/t/rake-no-such-file-to-load-but-gem-exists-and-loads/189146 "2010-05-25T15:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![russellf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7bcc69/32.png) [@russellf](https://www.ruby-forum.com/u/russellf)\
**Post date:** [May 25, 2010, 3:00pm UTC](https://www.ruby-forum.com/t/rake-no-such-file-to-load-but-gem-exists-and-loads/189146/1 "2010-05-25T15:00:35Z")

</div>

I’ve been working on a production app for about 3 years, and after a  
recent upgrade began receiving the error 'no such file to load –  
’ when running rake. The files are always gems that it is trying  
to load during initialization.

The strange part is that I can load the app using ruby script/console  
(or server), and I can open a shell, load the gems just fine by  
requiring rubygems and then the names of the gems – so I know they are  
installed fine (and were previously working).

I’ve uninstalled and reinstalled rails and rubygems… to no avail. I  
have a spare development machine in which the app works/develops fine,  
it’s just my primary that fails.

Help !??

Russell
