NullHypothesis NullHypothesis - 1 year ago 76
Ruby Question

Ruby -v showing the wrong version

I installed Ruby with homebrew following these steps

everything was great but then I found out the developer i'm working with used Ruby 2.3.0 and when I try to run rails server to get started, it complains about that whole move from Big Int to Integer .

So after some research and the link it indeed seems the right approach is to use 2.3 (wish the developer told me that initially).

I installed 2.3.0, but when I type ruby -v it still shows up as 2.4. I even used rbenv uninstall but it still says 2.4.

I'm still learning the basics so was hoping someone could maybe point me in the right direction on how to get it to register as 2.3 instead.

Thanks so much!

Answer Source

So what I noticed was that despite how many times I reinstalled, it never seemed to work, so I went with installing RVM. After doing this, I didn't notice much difference by way of what was installed, but it seemed to work afterwards (it even let me switch versions and typing ruby -v showed the correct set version).

My only guess is I can chalk this up to just missing a few installation steps during my initial rbenv setup and it was not due to rbenv itself.

tl;dr:

I probably messed up the installation or didn't run a command with elevated permissions or something, because going through the process again (albeit for rvm instead of rbenv) sorted out my problem.

Thanks for your time and help in this matter!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download