Rails uninstalls itself

0

I am trying to learn Ruby on Rails and it has cost me enough to start with configuration issues. Yesterday I was following a tutorial, so I installed Ruby and then rails with gem install rails , and everything worked fine. But today wanting to continue and start my server came out an error. In the end I had to reinstall Rails. But I still can not start the server and I get this error:

  

'Could not find a proper version of railties (4.0.0) in any of the   Sources Run% co_of% to install missing gems. '

Can someone tell me what happened? Maybe I installed it wrong the first time. How do I solve this error that I have now?

Thank you.

    
asked by daniel2017- 16.12.2016 в 14:40
source

3 answers

1

You have tried to use RVM as version manager of Ruby, possibly your error or problem is that you installed it as a gem of the system which is not recommended since the operating system generates some errors with gems and ruby versions, try installing RVM first and then install the versions of rails you need, RVM allows you to have multiple versions of Ruby and different sets of gems per project, that's why its name Ruby Version Manager (RVM)

if you use linux or macOS insists running this command:

curl -L https://get.rvm.io | bash -s stable

When you have installed that you try to install a version of Ruby, it can be stable:

rvm install stable

and finally install rails:

gem install rails --no-ri --no-rdoc

Greetings and I hope it helps you.

    
answered by 03.07.2017 в 20:10
0

The message tells you to type in the command line:

bundle install

Maybe this will solve your situation.

    
answered by 16.12.2016 в 16:43
0

I think you should specify what operating system you're trying, if it's in linux link  and for windows link , I recommend you use linux.

There are gems that do not go well or just do not work on windows.

I hope you serve, greetings

    
answered by 26.07.2017 в 22:38