# Where's rake?

**URL:** <https://www.ruby-forum.com/t/wheres-rake/116608>\
**Category:** Ruby\
**Created:** [October 7, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/wheres-rake/116608 "2007-10-07T22:44:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![7stud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/7/57b2e6/32.png) [@7stud](https://www.ruby-forum.com/u/7stud)\
**Post date:** [October 7, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/wheres-rake/116608/1 "2007-10-07T22:44:53Z")

</div>

I installed rubygems, and I got help output when I issued the command:

$ gem help

so I think ruby gems installed correctly. But when I tried to install  
the Rake gem, this was the output:

$ gem install -r rake  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find rake (\> 0) in any repository

$ gem install -r rake  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
ERROR: While executing gem … (Errno::EACCES)  
Permission denied - /usr/lib/ruby/gems/1.8/cache/rake-0.7.3.gem

It looks like I’m supposed to change permissions on a directory. Here  
are the permissions for cache:

drwxr-xr-x 3 root wheel 102 Oct 7 13:24 cache

Do I just need to give directory cache write access, or should I change  
a permission on a higher directory as well?

---

<div class="post-metadata">

**Author:** ![7stud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/7/57b2e6/32.png) [@7stud](https://www.ruby-forum.com/u/7stud)\
**Post date:** [October 7, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/wheres-rake/116608/2 "2007-10-07T23:14:21Z")

</div>

On 10/7/07, 7stud – [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> Could not find rake (> 0) in any repository
> 
> ```
> 
> Do I just need to give directory cache write access, or should I change  
> a permission on a higher directory as well?

Normally, unless you’ve custom installed gems to put things in your  
own directory structure you run gem install as root.

In most modern systems this is best accomplished via

$sudo gem install rake

I assume that you do have root capabilities since you are talking  
about changing permissions.

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![7stud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/7/57b2e6/32.png) [@7stud](https://www.ruby-forum.com/u/7stud)\
**Post date:** [October 8, 2007, 1:37am UTC](https://www.ruby-forum.com/t/wheres-rake/116608/3 "2007-10-08T01:37:28Z")

</div>

Rick Denatale wrote:

> $sudo gem install rake
> 
> I assume that you do have root capabilities since you are talking  
> about changing permissions.

Thanks, that did the trick. 🙂

Is there any way to avoid this every time:

Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)

That hangs for 3-5 minutes.

---

<div class="post-metadata">

**Author:** ![7stud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/7/57b2e6/32.png) [@7stud](https://www.ruby-forum.com/u/7stud)\
**Post date:** [October 8, 2007, 2:17am UTC](https://www.ruby-forum.com/t/wheres-rake/116608/4 "2007-10-08T02:17:54Z")

</div>

On Oct 7, 2007, at 16:37 , 7stud – wrote:

> Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)
> 
> That hangs for 3-5 minutes.

It shouldn’t any more. See [ruby-talk:272784].

Each user gets their own source\_cache file, so you end up doing it  
twice, once for yourself and once root. I think it would be ok to  
copy root’s source\_cache, but that’s not going to help much, since  
its more likely to be out of date.

PS: What version is your RubyGems?

---

<div class="post-metadata">

**Author:** ![7stud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/7/57b2e6/32.png) [@7stud](https://www.ruby-forum.com/u/7stud)\
**Post date:** [October 8, 2007, 9:59am UTC](https://www.ruby-forum.com/t/wheres-rake/116608/5 "2007-10-08T09:59:17Z")

</div>

On Oct 7, 2007, at 18:07 , 7stud – wrote:

> > copy root’s source\_cache, but that’s not going to help much, since  
> > its more likely to be out of date.
> > 
> > PS: What version is your RubyGems?
> 
> The most recent version: 0.9.4.

In 0.9.4 the maximum number of gems allowed to be out of date is a  
tiny 50 before switching to a bulk update. In 0.9.5 the amount will  
be boosted to 1000.

---

<div class="post-metadata">

**Author:** ![7stud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/7/57b2e6/32.png) [@7stud](https://www.ruby-forum.com/u/7stud)\
**Post date:** [October 8, 2007, 3:07am UTC](https://www.ruby-forum.com/t/wheres-rake/116608/6 "2007-10-08T03:07:54Z")

</div>

Eric H. wrote:

> On Oct 7, 2007, at 16:37 , 7stud – wrote:
> 
> > Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)
> > 
> > That hangs for 3-5 minutes.
> 
> It shouldn’t any more. See [ruby-talk:272784].
> 
> Each user gets their own source\_cache file, so you end up doing it  
> twice, once for yourself and once root. I think it would be ok to  
> copy root’s source\_cache, but that’s not going to help much, since  
> its more likely to be out of date.
> 
> PS: What version is your RubyGems?

The most recent version: 0.9.4.
