Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 4886  / 2 Years ago, wed, october 5, 2022, 5:25:52

I'm inside of the terminal right now and just about to make a new application. I'm inside of the app folder, did rails new --help and pops up:



The program 'rails' can be found in the following packages:
* rails
* ruby-railties-3.2
Try: sudo apt-get install <selected package>


and this couldn't be right because I installed rails using these instructions and everything is the latest and up to date:



http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/



Why am I getting this prompt? What do I have to do to get Rails working?


More From » 12.10

 Answers
7

You get that message when the executable you are trying to run is not in your PATH. You simply need to add the rails installation path to your PATH variable,



    export PATH="$PATH:/path/to/rails"


replacing /path/to/rails with the installation directory (probably something like $HOME/.rvm/.../bin/rails). For convenience, you can add the above line to the end of ~/.bashrc.



Note that it may be more convenient to install this from the Ubuntu repositories; the page you link to is over two years old, and the warning about obsolete packages in the repositories has probably not been applicable for quite some time.


[#32344] Friday, October 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
steaocyte

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
1 Year ago
;