# Rails: command not found

**URL:** <https://www.ruby-forum.com/t/rails-command-not-found/134084>\
**Category:** Rails\
**Created:** [April 7, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/rails-command-not-found/134084 "2008-04-07T18:30:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foottuns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@foottuns](https://www.ruby-forum.com/u/foottuns)\
**Post date:** [April 7, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/rails-command-not-found/134084/1 "2008-04-07T18:30:03Z")

</div>

I installed ruby, gem and then Rails. Rails seems to be installed (gem  
list --local), but when I run it, I get the “rails: command not found”  
message.

My linux $PATH is /usr/local/bin:/usr/bin:/bin:/usr/games.

I did try to find rails on the system and I came up with this:  
/var/lib/gems/1.8/bin/rails

Is it _wise_ to add /var/lib/gems/1.8/bin/ to $PATH? What it should have  
happened when I installed Rails and it didn’t happen?

I am running Debian 4.0r3 Etch.

Thanks!

~fseeker~
