# Trying to make gem dependencies work with rake gems:unpack

**URL:** <https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345>\
**Category:** Rails\
**Created:** [September 23, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345 "2008-09-23T21:18:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 23, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345/1 "2008-09-23T21:18:17Z")

</div>

Hi,

Ruby 1.8.6  
Rails 2.1.1  
Rake 0.8.2

I’m trying to install a local copy of the ‘will\_paginate’ gem using  
“rake gems:unpack GEM=will\_paginate”, but I’m not having much luck.  
I’ve added “config.gem ‘will\_paginate’” to my config/environment.rb  
file.

But, when I run “rake gems:unpack GEM=will\_paginate”, nothing happens.  
I don’t get an error, but there’s nothing under vendor/gems when it’s  
done.

What am I doing wrong?

Thanks,

Dan

---

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 23, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345/2 "2008-09-23T22:51:05Z")

</div>

On Sep 23, 2:17 pm, Daniel B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> But, when I run “rake gems:unpack GEM=will\_paginate”, nothing happens.  
> I don’t get an error, but there’s nothing under vendor/gems when it’s  
> done.
> 
> What am I doing wrong?
> 
> Thanks,
> 
> Dan

I had a similar issue (but not exactly the same) and found that the  
gem name has changed and I had to specify the source:

config.gem ‘mislav-will\_paginate’, :lib =\> ‘will\_paginate’, :source =\>  
'[http://gems.github.com](http://gems.github.com)

Maybe this will help your situation too?

Jeff

REST with Rails: Great for beginning Rails devs. Oct 4, Austin, TX:  
[http://www.purpleworkshops.com/workshops/rest-and-web-services](http://www.purpleworkshops.com/workshops/rest-and-web-services)  
Use Discount Code “PWRRGG”

---

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [September 24, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/trying-to-make-gem-dependencies-work-with-rake-gems-unpack/149345/3 "2008-09-24T15:24:39Z")

</div>

On Sep 23, 2:50 pm, Jeff [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > file.
> 
> I had a similar issue (but not exactly the same) and found that the  
> gem name has changed and I had to specify the source:
> 
> config.gem ‘mislav-will\_paginate’, :lib =\> ‘will\_paginate’, :source =\>  
> '[http://gems.github.com](http://gems.github.com)
> 
> Maybe this will help your situation too?

Thanks for that Jeff, but it didn’t work. In fact, I can’t get it to  
work with _any_ gems.

Any suggestions?

Thanks,

Dan
