Problems with the version of ruby and rails on Amazon Linux AMI (?)

Asked 2 years ago, Updated 2 years ago, 44 views

I am a student studying ruby and rails using Amazon Linux AMI. By default, the AMI has Ruby 2.0.0 installed. So I reinstalled it with the latest version. (ruby is 2.3.1 and rails is 5.0.0.1) But somehow, if you turn off the server and turn it on, ruby is 2.0 The rails are deleted altogether. The strange thing is that when you install rails 4.0.x, the server remains on and off.

ruby ruby-on-rails aws

2022-09-22 20:38

1 Answers

We recommend using tools such as rbenv or rvm.

With rbenv, rvm, you can install multiple versions of rubies and switch versions whenever you want.

In this case, it's kind of hard to handle because it's tangledYo

I recommend rbenv among rbenv and rvm. DHH, which made rails, also uses rbenv.

https://github.com/rbenv/rbenv

https://rvm.io/


2022-09-22 20:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.