rake: command not found

Viewed 51131

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?

5 Answers

They are correct, you need to have rake in your path. However if you want to make sure it's just there, instead of exporting it from .bashrc, make a symbolic link:

sudo ln -s /var/lib/gems/1.8/bin/rake /usr/bin/rake

If you do that, you should always be able to use it.

Related