# Gem location problem from rake task

**URL:** <https://www.ruby-forum.com/t/gem-location-problem-from-rake-task/193629>\
**Category:** Rails\
**Created:** [August 20, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/gem-location-problem-from-rake-task/193629 "2010-08-20T20:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [August 20, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/gem-location-problem-from-rake-task/193629/1 "2010-08-20T20:58:52Z")

</div>

I have installed the following gem which is in my environment.rb.  
However when I try to run a rake task, it gives the error:

environment.rb  
config.gem “devise\_invitable”, :version =\> ‘0.2.3’

$ rake mytasks:task  
(in /home/allen/www/lines)  
DEPRECATION WARNING: Rake tasks in vendor/plugins/paperclip/tasks are  
deprecated. Use lib/tasks instead. (called from  
/usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)  
Missing these required gems:  
devise\_invitable = 0.2.3

You’re running:  
ruby 1.8.7.249 at /usr/bin/ruby1.8  
rubygems 1.3.5 at /home/allen/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.

so I do “rake gems:install” and it installs.

$ gem env  
RubyGems Environment:

- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-04-19 patchlevel 253) [x86\_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86\_64-linux

- GEM PATHS:
  - /usr/local/lib/ruby/gems/1.8
  - /home/allen/.gem/ruby/1.8

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://rubygems.org/](http://rubygems.org/)

In the directory:  
$ cd /usr/local/lib/ruby/gems/1.8/gems/  
allen@ubuntu:/usr/local/lib/ruby/gems/1.8/gems$ ll  
total 132  
.  
.  
drwxr-xr-x 6 root root 4096 2010-08-20 13:50 devise\_invitable-0.2.3

HELP!

---

<div class="post-metadata">

**Author:** ![hangingclowns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5e925/32.png) [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Post date:** [August 20, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/gem-location-problem-from-rake-task/193629/2 "2010-08-20T21:08:12Z")

</div>

BTW when I do “gem list” the gem appears:

# gem list

allen@ubuntu:~/www/lines$ gem list

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.3.8)  
actionpack (2.3.8)  
activerecord (2.3.8)  
activeresource (2.3.8)  
activesupport (2.3.8)  
authlogic (2.1.3)  
bcrypt-ruby (2.1.2)  
crack (0.1.6)  
devise (1.0.8, 1.0.7)  
devise\_invitable (0.2.3) \<-----------------  
fastthread (1.0.7)  
formtastic (0.9.10)
