Run/Migrate Older Ruby Application (Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1)

19 views
Skip to first unread message

braini...@gmail.com

unread,
Dec 23, 2018, 1:34:11 PM12/23/18
to Ruby on Rails: Talk
I am taking over an app that has not been developed for a few years. Currently the app is on Github and I have a local Ruby on Rails install on my Ubuntu 16.04 box which I have a copy of the master on where I keep running into the following error:Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1 . I have run bundle update and bundle install to no avail please advise.

Daniel Dunckel

unread,
Dec 23, 2018, 1:40:16 PM12/23/18
to rubyonra...@googlegroups.com
Your Gemfile is specifying a ruby version. Change or remove that and run bundle again.

On Sun, Dec 23, 2018 at 11:34 AM <braini...@gmail.com> wrote:
I am taking over an app that has not been developed for a few years. Currently the app is on Github and I have a local Ruby on Rails install on my Ubuntu 16.04 box which I have a copy of the master on where I keep running into the following error:Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1 . I have run bundle update and bundle install to no avail please advise.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e3856239-6394-431a-9d5a-9f4a8ec647aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

The Digital Academy

unread,
Dec 23, 2018, 1:47:00 PM12/23/18
to rubyonra...@googlegroups.com
Just change the version of ruby in your gemfile that will do it

Hasan Diwan

unread,
Dec 23, 2018, 1:52:35 PM12/23/18
to rubyonra...@googlegroups.com
Do you have rvm managing your ruby versions? If so, just run rvm install 2.3.1 or comment out the ruby version in the Gemfile and you should be golden.

On Sun, 23 Dec 2018 at 10:34, <braini...@gmail.com> wrote:
I am taking over an app that has not been developed for a few years. Currently the app is on Github and I have a local Ruby on Rails install on my Ubuntu 16.04 box which I have a copy of the master on where I keep running into the following error:Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1 . I have run bundle update and bundle install to no avail please advise.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e3856239-6394-431a-9d5a-9f4a8ec647aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.

Sent from my mobile device
Envoye de mon portable

Neville Smith

unread,
Dec 23, 2018, 2:36:20 PM12/23/18
to rubyonra...@googlegroups.com
Thank you Daniel. I will keep you all posted.

Neville Smith

unread,
Dec 23, 2018, 2:36:31 PM12/23/18
to rubyonra...@googlegroups.com

Neville Smith

unread,
Dec 23, 2018, 2:37:30 PM12/23/18
to rubyonra...@googlegroups.com
No rvm and I  am  considering  just a clean  machine  install  again  with the  recommendations that  have  been  suggested.

Hassan Schroeder

unread,
Dec 23, 2018, 2:52:48 PM12/23/18
to rubyonrails-talk
On Sun, Dec 23, 2018 at 11:37 AM Neville Smith <braini...@gmail.com> wrote:
>
> No rvm

If you're going to be maintaining this app -- keeping up with ruby and
gem versions -- using rvm or equivalent is *really* helpful.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

fugee ohu

unread,
Dec 26, 2018, 5:04:43 PM12/26/18
to Ruby on Rails: Talk
You have to keep everything under your user account, you wouldn't want to have a system ruby  installed Uninstall system ruby and delete all system installed gems, google 'rvm install' and follow the instructions but not as root, as a normal user account, don't do anything as root so then you'll have /home/yourusername/.rvm/gems/ruby-2.5.3/gems/... To install ruby versions with rvm just run `rvm install 2.5.3` let's say for example and if you have different ruby versions installed you can switch with `rvm use <version>`

Neville Smith

unread,
Dec 26, 2018, 5:09:31 PM12/26/18
to rubyonra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages