Reputation: 11
Folks,
Yesterday I installed Rails 3.2 on Ubuntu 12.10 and created a new project in order to check it. It was working OK.
Today I tried to create a new project and got the message bellow (Portuguese version):
O programa 'rails' pode ser encontrado nos seguintes pacotes:
* rails
* ruby-railties-3.2
Tente: sudo apt-get install <pacote selecionado>
Something like:
The program 'rails' could not be found in the follow packages:
...
...
Try: sudo apt-get install <selected package>
I run the command gem list and all the gems are listed, including Rails one.
I tried to search on the web for a solution, but haven't found any.
Thank you very much for your help.
Luiz
Upvotes: 1
Views: 633
Reputation: 919
Just add /home/(yourUser)/.gem/ruby/1.9.3/bin
to your PATH-Variable
Easiest way to do that is to add that line to your ~/.bashrc and restart your shell:
export PATH=$PATH:/home/(yourUser)/.gem/ruby/1.9.3/bin
Remeber to replace (yourUser)
with your user name and make sure, ruby version is correct ;)
Upvotes: 1