Reputation: 9087
I've installed rails using 'gem install rails', but when I try to create a new project, I get the error: The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
There were no error messages when I ran 'gem install rails'. How come I cannot run rails commands?
When I do sudo apt-get install rails, it will install an older version of ruby, 1.8. I want the newest, so I do not want to install rails from apt-get.
Edit: Figured it out. Had to add PATH="${PATH}:/var/lib/gems/1.8/bin/" to .bashrc
Upvotes: 0
Views: 3193
Reputation: 88
The command for rails is not 'gem rails' it is just 'rails'
To install rails:
gem install rails To create a new rails application
rails new myapp
Upvotes: -1
Reputation: 34613
reboot your machine, this sometimes happens to me on Ubuntu, 99% of the time I just need to rebort
Upvotes: 0
Reputation: 2835
The command for rails is not 'gem rails' it is just 'rails'
To install rails:
gem install rails
To create a new rails application
rails myapp
Upvotes: 1