Upgrade to rails 7

Hi all, this is my first post. I love ruby, and the rails MVC. I have a laptop that is aging and had to install ubuntu on it (may change to mint for cinemon). By the by, I have tried for the last two days to go from rails 6.x to 7.x with no like.

I have tried rbv, github repos, the walkthrough on odin project your own documentation. I did a command line install on windows and had no problem. Ruby is latest version, I just can’t get rails.

Questions and suggestions greatly appreciated.

Welcome! If you’re trying to install Rails (or any Ruby gem) using the system packaged ruby, you should do yourself a huge favor and use rvm or rbenv or another ruby version management script to install the appropriate ruby for your project. If you have ruby 2.7.6 installed using one of those methods, you should be able to get everything in your existing app to install through Bundler by simply cd-ing into the project and typing bundle install.

The system ruby is both unlikely to be current, and also too hard to change. Once you’ve upgraded that app to Rails 7, you’ll want to also update to ruby 3.0.4 or even 3.1.x and that is a frank nightmare to do with system rubies.

Hope this helps,


  1. https://bundler.io
  2. https://rvm.io
  3. GitHub - rbenv/rbenv: Manage your app's Ruby environment and GitHub - rbenv/rbenv-installer: Installer and doctor scripts for rbenv
1 Like

Hi Walter - thanks for your help As I said I have tried RVENV - Ruby isn’t the issue I just can’t get rails 7 (.x) I don’t know if this picture will help?:

wget -q "https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor" -O- | bash
Checking for `rbenv' in PATH: multiple
  You seem to have multiple rbenv installs in the following locations.
  Please pick just one installation and remove the others.

Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /home/d/.rbenv/plugins/ruby-build/bin/rbenv-install (ruby-build 20220426-3-g1038c07)
Counting installed Ruby versions: none
  There aren't any Ruby versions installed under `/home/d/.rbenv/versions'.
  You can install Ruby versions like so: rbenv install 3.1.2
Checking RubyGems settings: OK
Auditing installed plugins: OK
$ rails --version
Error running '__rvm_make -j4',
please read /home/d/.rvm/log/1654590422_ruby-3.0.0/make.log

There has been an error while running make. Halting the installation.

(linux I really need to get GIMP but one thing at a time)

if any of this can help you help me you will have my eturnal gratitute

Seems this post is mis-titled. Described as “upgrade to Rails 7” but is “cannot install ruby version using rbenv”

Good advice. chruby is another and simple manager. GitHub - postmodern/chruby: Changes the current Ruby