All threads / Rails for Beginners Part 1: Installing Ruby on Rails Discussion
Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails for Beginners Part 1: Installing Ruby on Rails Discussion

Hi Chris, i have a question, currently have rvm on my machine, do you think i can get problems if i install also rbenv to install ruby 3.0.0?

I'd say it is generally preferable to have either rvm or rbenv installed on your machine, but not both.
If you want to make the switch to rbenv, you'll find articles or gists on your favorite search engine such as https://dev.to/krtb/why-and-how-i-replaced-rvm-with-rbenv-23ad or https://gist.github.com/traumverloren/fa5c30056319992c4dab

Using RVM is just fine! Don't worry about switching to rbenv if you're already on RVM.

Reply

I'm coming back to Rails after many years. I had the exact same question! The article that surfaced when I searched was https://duseev.com/articles/rbenv-vs-rvm/ I'll also read the two recommended by Pierre-Loïc. Thank you for those leads. Getting RVM off my system looks like an intimidating undertaking. :-(

Reply

Best to stick with the one that is working now. I made the switch and it took awhile to clean out the system. Caused a few headaches.

Reply

I ran rbenv install 3.0.3 (followed by rbenv global 3.0.3) and it returned the following:

Downloading openssl-1.1.1l.tar.gz...
-> dqw8nmjcqpjn7.cloudfront.net/0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
Installing openssl-1.1.1l...
Installed openssl-1.1.1l to /Users/isaactait/.rbenv/versions/3.0.3

Downloading ruby-3.0.3.tar.gz...
-> cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz
Installing ruby-3.0.3...
ruby-build: using readline from homebrew
Installed ruby-3.0.3 to /Users/isaactait/.rbenv/versions/3.0.3

However, when I run ruby -v it returns ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]

Why am I running a version I did not install? On a Mac 12.2.1

I found a comment from a user having the same issue in the "Install Ruby & Rails Guide" above. The following fixed the issue for me:

After setting the global version, I needed to close the terminal, open another, run rbenv rehash.

Reply

It is best to continue using what is currently effective. The system needed time to be cleaned after I made the transition. gave me a headache.

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 66,029+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.