Problem to deploy on my VPS msgpack.so (LoadError)

Hello, I don’t know if it’s the right place to post, but I have a problem. I’m not a beginner in Ruby, but it’s the first time I use Ruby for a website. I’m learning by myself actually for that. I have a problem actually. I made my website on my laptop (Gentoo Linux system, with a ruby version 2.7.5), and it work fine. But when I would like to deploy my website on my Debian VPS, and I run

rails server

I have an error. First I thought I need to specify the ruby version (lower as well), but unfortunately, I have again an error.

Any idea ?

Traceback (most recent call last):
        29: from bin/rails:2:in `<main>'
        28: from bin/rails:2:in `load'
        27: from /home/tadashi/tadashi.co.uk/bin/spring:7:in `<top (required)>'
        26: from /home/tadashi/tadashi.co.uk/bin/spring:7:in `tap'
        25: from /home/tadashi/tadashi.co.uk/bin/spring:10:in `block in <top (required)>'
        24: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
        23: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
        22: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/binstub.rb:11:in `<top (required)>'
        21: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/binstub.rb:11:in `load'
        20: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/bin/spring:49:in `<top (required)>'
        19: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client.rb:30:in `run'
        18: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client/command.rb:7:in `call'
        17: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client/rails.rb:30:in `call'
        16: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client/rails.rb:30:in `load'
        15: from /home/tadashi/tadashi.co.uk/bin/rails:4:in `<top (required)>'
        14: from /home/tadashi/tadashi.co.uk/bin/rails:4:in `require_relative'
        13: from /home/tadashi/tadashi.co.uk/config/boot.rb:4:in `<top (required)>'
        12: from /home/tadashi/tadashi.co.uk/config/boot.rb:4:in `require'
        11: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/setup.rb:3:in `<top (required)>'
        10: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/setup.rb:3:in `require_relative'
         9: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap.rb:5:in `<top (required)>'
         8: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap.rb:5:in `require_relative'
         7: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache.rb:61:in `<top (required)>'
         6: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache.rb:61:in `require_relative'
         5: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache/store.rb:5:in `<top (required)>'
         4: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/explicit_require.rb:42:in `with_gems'
         3: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache/store.rb:5:in `block in <top (required)>'
         2: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache/store.rb:5:in `require'
         1: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/msgpack-1.4.3/lib/msgpack.rb:7:in `<top (required)>'
/home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/msgpack-1.4.3/lib/msgpack.rb:7:in `require': libruby27.so.2.7: cannot open shared object file: No such file or directory - /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/msgpack-1.4.3/msgpack/msgpack.so (LoadError)
        30: from bin/rails:2:in `<main>'
        29: from bin/rails:2:in `load'
        28: from /home/tadashi/tadashi.co.uk/bin/spring:7:in `<top (required)>'
        27: from /home/tadashi/tadashi.co.uk/bin/spring:7:in `tap'
        26: from /home/tadashi/tadashi.co.uk/bin/spring:10:in `block in <top (required)>'
        25: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
        24: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
        23: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/binstub.rb:11:in `<top (required)>'
        22: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/binstub.rb:11:in `load'
        21: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/bin/spring:49:in `<top (required)>'
        20: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client.rb:30:in `run'
        19: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client/command.rb:7:in `call'
        18: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client/rails.rb:30:in `call'
        17: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/spring-4.0.0/lib/spring/client/rails.rb:30:in `load'
        16: from /home/tadashi/tadashi.co.uk/bin/rails:4:in `<top (required)>'
        15: from /home/tadashi/tadashi.co.uk/bin/rails:4:in `require_relative'
        14: from /home/tadashi/tadashi.co.uk/config/boot.rb:4:in `<top (required)>'
        13: from /home/tadashi/tadashi.co.uk/config/boot.rb:4:in `require'
        12: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/setup.rb:3:in `<top (required)>'
        11: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/setup.rb:3:in `require_relative'
        10: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap.rb:5:in `<top (required)>'
         9: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap.rb:5:in `require_relative'
         8: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache.rb:61:in `<top (required)>'
         7: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache.rb:61:in `require_relative'
         6: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache/store.rb:5:in `<top (required)>'
         5: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/explicit_require.rb:41:in `with_gems'
         4: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/explicit_require.rb:45:in `rescue in with_gems'
         3: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache/store.rb:5:in `block in <top (required)>'
         2: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.10.1/lib/bootsnap/load_path_cache/store.rb:5:in `require'
         1: from /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/msgpack-1.4.3/lib/msgpack.rb:7:in `<top (required)>'
/home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/gems/msgpack-1.4.3/lib/msgpack.rb:7:in `require': libruby27.so.2.7: cannot open shared object file: No such file or directory - /home/tadashi/tadashi.co.uk/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/msgpack-1.4.3/msgpack/msgpack.so (LoadError)

My Gemfile:

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.7.4'

gem 'msgpack'

gem 'mongoid'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.4', '>= 6.1.4.4'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  gem 'web-console', '>= 4.1.0'
  # Display performance information such as SQL time and flame graphs for each request in your browser.
  # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
  #gem 'rack-mini-profiler', '~> 2.0'
  gem 'listen', '~> 3.3'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '>= 3.26'
  gem 'selenium-webdriver'
  # Easy installation and use of web drivers to run system tests with browsers
  gem 'webdrivers'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]