Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rake: command not found

I'm trying to install rails on Ubuntu 9.10.

gem list --local  *** LOCAL GEMS ***  actionmailer (2.3.4, 2.3.2) actionpack (2.3.4, 2.3.2) activerecord (2.3.4, 2.3.2) activeresource (2.3.4, 2.3.2) activesupport (2.3.4, 2.3.2) rack (1.0.1) rails (2.3.4, 2.3.2) rake (0.8.7) sqlite3-ruby (1.2.5)  rake The program 'rake' is currently not installed.  You can install it by typing: sudo apt-get install rake rake: command not found 

How do I solve this?

like image 808
eksatx Avatar asked Nov 03 '09 02:11

eksatx


1 Answers

You need to add /var/lib/gems/1.8/bin to your PATH. Try this command:

export PATH=$PATH:$HOME/bin:/var/lib/gems/1.8/bin 

After that rake should work.

You can add this line to your ~/.bashrc so that you don't have to type in this command each time.

like image 181
Siddhartha Reddy Avatar answered Oct 02 '22 10:10

Siddhartha Reddy