Hi Everyone,
I am trying to upgrade an existing canvas install (from mid 2021) on Ubuntu 20.04.4 LTS (that had been using rails 2.6.6) to the latest production version.
I installed Ruby 2.7 and when I run:
$ ruby -v
I get:
ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux-gnu]
but when I run:
$GEM_HOME/bin/bundle install
I get the error:
Your Ruby version is 2.6.6, but your Gemfile specified >= 2.7.0, < 3.1
When I run:
$ gem env
I get:
RubyGems Environment:
- RUBYGEMS VERSION: 3.3.12
- RUBY VERSION: 2.6.6 (2020-03-31 patchlevel 146) [x86_64-linux-gnu]
- INSTALLATION DIRECTORY: /var/lib/gems/2.6.0
- USER INSTALLATION DIRECTORY: /home/USERDIR/.local/share/gem/ruby/2.6.0
- RUBY EXECUTABLE: /usr/bin/ruby2.6
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /usr/local/bin
- SPEC CACHE DIRECTORY: /home/USERDIR/.local/share/gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/2.6.0
- /home/USERDIR/.local/share/gem/ruby/2.6.0
- /usr/lib/ruby/gems/2.6.0
- /usr/share/rubygems-integration/2.6.0
- /usr/share/rubygems-integration/all
- /usr/lib/x86_64-linux-gnu/rubygems-integration/2.6.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
-
https://rubygems.org/ - SHELL PATH:
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
How do I update the ENV to point to and use the correct version of rails? Any help would be GREATLY appreciated.