[Surprisingly addictive! ] Precautions when installing past versions of Ruby

Good evening Aloha man, Yasunori!

When creating an application, "I absolutely need to work with past versions of Ruby! I think the time will come. (Actually, when I was about to do team development, I needed a past version of Ruby ...: sweat_smile :)

However, when I actually tried to install the past version, it didn't work and it took a long time, so I will write it for people who are in the same situation and for myself in the future! !!

The past version I want doesn't come out! ??

Currently 2.6.5 version is included, so to install 2.5.1

rbenv install --list

When I ran

スクリーンショット_2020-10-03_19_37_52.jpg

That ... why isn't the 2.5.1 version coming out! ?? As a result of confusingly going to the Ruby homepage and so on ... the answer was right there! !! スクリーンショット_2020-10-03_19_37_52.jpg Yes, you can see it when you see it ... "If you want to see all versions, use the --list-all option. 』
And ... I wrote ... Kindly: joy:

Once I was confused, I calmed down and realized that this is very important.

Display the past version again

Now, let's take a second look and display the past version! !! With the option you checked earlier

rbenv install --list-all

When you run ... スクリーンショット_2020-10-03_19_39_00-4.jpg came out! !! I was wondering what would happen at one point, but I'm relieved to find the 2.5.1 version I wanted somehow.

And finally

rbenv install 2.5.1

If you execute スクリーンショット_2020-10-03_19_39_25-2.jpg Yes! !! It was installed successfully! !! This settles down one case: laughing:

Conclusion

Even if a happening happens, don't rush and check the situation! !!

Recommended Posts

[Surprisingly addictive! ] Precautions when installing past versions of Ruby