# rake error

**URL:** <https://discuss.rubyonrails.org/t/rake-error/63973>\
**Category:** rubyonrails-talk\
**Created:** [May 23, 2012, 7:29pm UTC](https://discuss.rubyonrails.org/t/rake-error/63973 "2012-05-23T19:29:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meow\_san](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Meow\_san](https://discuss.rubyonrails.org/u/Meow_san)\
**Post date:** [May 23, 2012, 7:29pm UTC](https://discuss.rubyonrails.org/t/rake-error/63973/1 "2012-05-23T19:29:42Z")

</div>

/usr/bin/rake:9:in `require': no such file to load -- rubygems (LoadError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/bin/rake:9

I got this error when following an online guide in rails, the command I had to type in was # rake db:create.. after I typed in the command I got the above error. It's almost 2 days that I'm searching for a solution to this. But in vain,

Can anyone help me out btw I'm a rookie in RoR

---

<div class="post-metadata">

**Author:** ![Jeffrey](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey](https://discuss.rubyonrails.org/u/Jeffrey)\
**Post date:** [May 24, 2012, 7:57pm UTC](https://discuss.rubyonrails.org/t/rake-error/63973/2 "2012-05-24T19:57:11Z")

</div>

Quoting Meow san \<meowsanforever@hotmail.com\>:

> /usr/bin/rake:9:in `require': no such file to load -- rubygems (LoadError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/bin/rake:9
> 
> I got this error when following an online guide in rails, the command I had to type in was # rake db:create.. after I typed in the command I got the above error. It's almost 2 days that I'm searching for a solution to this. But in vain,

Is rubygems installed? At the command line, type:

gem list --local rubygems

If nothing listed, type "gem install rubygems", preferably as root.

HTH, &nbsp;&nbsp;Jeffrey

---

<div class="post-metadata">

**Author:** ![Duong\_Quang\_Ha](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Duong\_Quang\_Ha](https://discuss.rubyonrails.org/u/Duong_Quang_Ha)\
**Post date:** [May 25, 2012, 1:38am UTC](https://discuss.rubyonrails.org/t/rake-error/63973/3 "2012-05-25T01:38:09Z")

</div>

Hello,

> /usr/bin/rake:9:in `require’: no such file to load – rubygems
> 
> (LoadError)
> 
> ```
> from /usr/bin/rake:9
> 
> ```
> 
> I got this error when following an online guide in rails, the command
> 
> I had to type in was # rake db:create… after I typed in the command I
> 
> got the above error. It’s almost 2 days that I’m searching for a
> 
> solution to this. But in vain,

It seem that your rubygems hasn’t been installed on your system.

You can install it from repository. You cannot install rubygems by

itself (gem install …).

gem is Ruby’s packages manager.

> Can anyone help me out btw I’m a rookie in RoR

Best regards,

Duong Quang Ha
