# Gem rake error

**URL:** <https://www.ruby-forum.com/t/gem-rake-error/190794>\
**Category:** Ruby\
**Created:** [June 28, 2010, 11:47am UTC](https://www.ruby-forum.com/t/gem-rake-error/190794 "2010-06-28T11:47:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgeuoa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7ab992/32.png) [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Post date:** [June 28, 2010, 11:47am UTC](https://www.ruby-forum.com/t/gem-rake-error/190794/1 "2010-06-28T11:47:51Z")

</div>

on ruby 1.9.2dev (2010-05-31 revision 28117) [x86\_64-darwin10.3.0] and  
rake 0.8.7

I am experiencing this error whenever i run rake.  
Any suggested solution?

/usr/local/lib/ruby/1.9.1/rubygems.rb:335:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception) from <internal:gem_prelude>:282:in`method\_missing’  
from /usr/local/bin/rake:19:in `’

---

<div class="post-metadata">

**Author:** ![georgeuoa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7ab992/32.png) [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Post date:** [June 28, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/gem-rake-error/190794/2 "2010-06-28T17:10:44Z")

</div>

On Jun 28, 5:47 am, George G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> on ruby 1.9.2dev (2010-05-31 revision 28117) [x86\_64-darwin10.3.0] and  
> rake 0.8.7
> 
> I am experiencing this error whenever i run rake.  
> Any suggested solution?
> 
> /usr/local/lib/ruby/1.9.1/rubygems.rb:335:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception) from <internal:gem_prelude>:282:in `method\_missing’  
> from /usr/local/bin/rake:19:in `’

How you installed 1.9.2dev in your system?

Looks like is OSX, and if you installed 1.9.2 manually, you might have  
override the default bundled version which maybe it didn’t update the  
stub scripts (/usr/local/bin/rake).

I would recommend you instead of doing that, use a saner and cleaner  
environment tool like RVM:

[http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)

That will allow you have 1.9.2 and not mess with the bundled OSX  
version of Ruby.
