Ask A Question

Notifications

You’re not receiving notifications from this thread.

Ruby version stuck on macOS

RJ McCollam asked in Ruby

Setting up my new MacBook Pro and am running into an issue with ruby versions.

At this point I have installed and am usin rbenv. I installed ruby 2.3.1 and when I ruby -v that is what it shows.

When I try to start the server on an app that specifies ruby 2.3.1 in the gemfile and in .ruby-version I get this message - "Your Ruby version is 2.0.0, but your Gemfile specified 2.3.1".

Not sure where this rouge setting of 2.0.0 is at.

Reply

Hmmm, I can only think of the obvious places, .ruby-version and Gemfile to check, but I'm sure you've already done that. Did you get this figured out?

Reply

Haven't figured it out just yet.

In looking at .ruby-version and Gemfile they both have the correct version of Ruby I am wanting to use. Seems bizarre to me.

Reply

I got this figured out. It looks like there was a rouge line in my .bash_profile that was putting rbenv in my $PATH and was casuing issues.

Cleared that up and was able to get things up and running.

Reply

Weird, rbenv should be in your path.

Reply
Join the discussion
Create an account Log in

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

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

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

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

    © 2024 GoRails, LLC. All rights reserved.